[−][src]Struct hyper::net::HttpsConnector
A connector that can protect HTTP streams using SSL.
Methods
impl<S: SslClient> HttpsConnector<S, HttpConnector>
[src]
pub fn new(s: S) -> HttpsConnector<S, HttpConnector>
[src]
Create a new connector using the provided SSL implementation.
impl<S: SslClient, C: NetworkConnector> HttpsConnector<S, C>
[src]
pub fn with_connector(s: S, connector: C) -> HttpsConnector<S, C>
[src]
Create a new connector using the provided SSL implementation.
Trait Implementations
impl<S: SslClient, C: NetworkConnector<Stream = HttpStream>> NetworkConnector for HttpsConnector<S, C>
[src]
type Stream = HttpsStream<S::Stream>
Type of Stream
to create
fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>
[src]
impl<S: Default + SslClient, C: Default + NetworkConnector> Default for HttpsConnector<S, C>
[src]
fn default() -> HttpsConnector<S, C>
[src]
impl<S: Debug + SslClient, C: Debug + NetworkConnector> Debug for HttpsConnector<S, C>
[src]
Auto Trait Implementations
impl<S, C> Unpin for HttpsConnector<S, C> where
C: Unpin,
S: Unpin,
C: Unpin,
S: Unpin,
impl<S, C> Sync for HttpsConnector<S, C> where
C: Sync,
S: Sync,
C: Sync,
S: Sync,
impl<S, C> Send for HttpsConnector<S, C> where
C: Send,
S: Send,
C: Send,
S: Send,
impl<S, C> UnwindSafe for HttpsConnector<S, C> where
C: UnwindSafe,
S: UnwindSafe,
C: UnwindSafe,
S: UnwindSafe,
impl<S, C> RefUnwindSafe for HttpsConnector<S, C> where
C: RefUnwindSafe,
S: RefUnwindSafe,
C: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<F> NetworkConnector for F where
F: Fn(&str, u16, &str) -> Result<TcpStream, Error>,
[src]
F: Fn(&str, u16, &str) -> Result<TcpStream, Error>,
type Stream = HttpStream
Type of Stream
to create
fn connect(&Self, &str, u16, &str) -> Result<HttpStream, Error>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
[src]
T: Any,