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

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

A connector that can protect HTTP streams using SSL.

Implementations

impl<S> HttpsConnector<S, HttpConnector> where
    S: SslClient<HttpStream>, 
[src]

pub fn new(s: S) -> HttpsConnector<S, HttpConnector>[src]

Create a new connector using the provided SSL implementation.

impl<S, C> HttpsConnector<S, C> where
    C: NetworkConnector,
    S: SslClient<HttpStream>, 
[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, C> Debug for HttpsConnector<S, C> where
    C: NetworkConnector + Debug,
    S: SslClient<HttpStream> + Debug
[src]

impl<S, C> Default for HttpsConnector<S, C> where
    C: NetworkConnector + Default,
    S: SslClient<HttpStream> + Default
[src]

impl<S, C> NetworkConnector for HttpsConnector<S, C> where
    C: NetworkConnector<Stream = HttpStream>,
    S: SslClient<HttpStream>, 
[src]

type Stream = HttpsStream<<S as SslClient<HttpStream>>::Stream>

Type of Stream to create

Auto Trait Implementations

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

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> Unpin for HttpsConnector<S, C> where
    C: Unpin,
    S: Unpin

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

Blanket Implementations

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

impl<T, I> AsResult<T, I> for T where
    I: Input, 

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

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

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

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

impl<T> IntoCollection<T> for T

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> Same<T> for T

type Output = T

Should always be Self

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> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,