[][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.

Methods

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> 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

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]

Auto Trait Implementations

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

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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> IntoCollection for T[src]

impl<T, I> AsResult for T where
    I: Input
[src]