[−][src]Struct hyper::net::HttpsConnector
A connector that can protect HTTP streams using SSL.
Methods
impl<S: SslClient> HttpsConnector<S, HttpConnector>
[src]
impl<S: SslClient> HttpsConnector<S, HttpConnector>
pub fn new(s: S) -> HttpsConnector<S, HttpConnector>
[src]
pub fn new(s: S) -> HttpsConnector<S, HttpConnector>
Create a new connector using the provided SSL implementation.
impl<S: SslClient, C: NetworkConnector> HttpsConnector<S, C>
[src]
impl<S: SslClient, C: NetworkConnector> HttpsConnector<S, C>
pub fn with_connector(s: S, connector: C) -> HttpsConnector<S, C>
[src]
pub fn with_connector(s: S, connector: C) -> HttpsConnector<S, C>
Create a new connector using the provided SSL implementation.
Trait Implementations
impl<S: SslClient, C: NetworkConnector<Stream = HttpStream>> NetworkConnector for HttpsConnector<S, C>
[src]
impl<S: SslClient, C: NetworkConnector<Stream = HttpStream>> NetworkConnector for HttpsConnector<S, C>
type Stream = HttpsStream<S::Stream>
Type of Stream
to create
fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>
[src]
fn connect(&self, host: &str, port: u16, scheme: &str) -> Result<Self::Stream>
Connect to a remote address.
impl<S: Default + SslClient, C: Default + NetworkConnector> Default for HttpsConnector<S, C>
[src]
impl<S: Default + SslClient, C: Default + NetworkConnector> Default for HttpsConnector<S, C>
fn default() -> HttpsConnector<S, C>
[src]
fn default() -> HttpsConnector<S, C>
Returns the "default value" for a type. Read more
impl<S: Debug + SslClient, C: Debug + NetworkConnector> Debug for HttpsConnector<S, C>
[src]
impl<S: Debug + SslClient, C: Debug + NetworkConnector> Debug for HttpsConnector<S, C>
Auto Trait Implementations
impl<S, C> Send for HttpsConnector<S, C> where
C: Send,
S: Send,
impl<S, C> Send for HttpsConnector<S, C> where
C: Send,
S: Send,
impl<S, C> Sync for HttpsConnector<S, C> where
C: Sync,
S: Sync,
impl<S, C> Sync for HttpsConnector<S, C> where
C: Sync,
S: Sync,
Blanket Implementations
impl<F> NetworkConnector for F where
F: Fn(&str, u16, &str) -> Result<TcpStream, Error>,
[src]
impl<F> NetworkConnector for F where
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]
fn connect(&Self, &str, u16, &str) -> Result<HttpStream, Error>
Connect to a remote address.
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Typeable for T where
T: Any,
[src]
impl<T> Typeable for T where
T: Any,