pub struct HttpsConnector<S, C = HttpConnector>where
S: SslClient,
C: NetworkConnector,{ /* private fields */ }
Expand description
A connector that can protect HTTP streams using SSL.
Implementations§
source§impl<S> HttpsConnector<S>where
S: SslClient,
impl<S> HttpsConnector<S>where
S: SslClient,
sourcepub fn new(s: S) -> HttpsConnector<S>
pub fn new(s: S) -> HttpsConnector<S>
Create a new connector using the provided SSL implementation.
source§impl<S, C> HttpsConnector<S, C>where
S: SslClient,
C: NetworkConnector,
impl<S, C> HttpsConnector<S, C>where
S: SslClient,
C: NetworkConnector,
sourcepub fn with_connector(s: S, connector: C) -> HttpsConnector<S, C>
pub fn with_connector(s: S, connector: C) -> HttpsConnector<S, C>
Create a new connector using the provided SSL implementation.
Trait Implementations§
source§impl<S, C> Debug for HttpsConnector<S, C>
impl<S, C> Debug for HttpsConnector<S, C>
source§impl<S, C> Default for HttpsConnector<S, C>
impl<S, C> Default for HttpsConnector<S, C>
source§fn default() -> HttpsConnector<S, C>
fn default() -> HttpsConnector<S, C>
Returns the “default value” for a type. Read more
source§impl<S, C> NetworkConnector for HttpsConnector<S, C>
impl<S, C> NetworkConnector for HttpsConnector<S, C>
Auto Trait Implementations§
impl<S, C> Freeze for HttpsConnector<S, C>
impl<S, C> RefUnwindSafe for HttpsConnector<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for HttpsConnector<S, C>
impl<S, C> Sync for HttpsConnector<S, C>
impl<S, C> Unpin for HttpsConnector<S, C>
impl<S, C> UnwindSafe for HttpsConnector<S, C>where
S: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more