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