[][src]Struct hyper::net::HttpsConnector

pub struct HttpsConnector<S: SslClient, C: NetworkConnector = HttpConnector> { /* fields omitted */ }

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

impl<S: Default + SslClient, C: Default + NetworkConnector> Default for 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

impl<S, C> Sync for HttpsConnector<S, C> where
    C: Sync,
    S: Sync

impl<S, C> Send for HttpsConnector<S, C> where
    C: Send,
    S: Send

impl<S, C> UnwindSafe for HttpsConnector<S, C> where
    C: UnwindSafe,
    S: UnwindSafe

impl<S, C> RefUnwindSafe for HttpsConnector<S, C> where
    C: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

impl<F> NetworkConnector for F where
    F: Fn(&str, u16, &str) -> Result<TcpStream, Error>, 
[src]

type Stream = HttpStream

Type of Stream to create

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any
[src]

fn get_type(&self) -> TypeId[src]

Get the TypeId of this object.