[−][src]Struct rocket::http::hyper::net::HttpsConnector
A connector that can protect HTTP streams using SSL.
Methods
impl<S> HttpsConnector<S, HttpConnector> where
S: SslClient<HttpStream>,
[src]
S: SslClient<HttpStream>,
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]
C: NetworkConnector,
S: SslClient<HttpStream>,
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]
C: NetworkConnector + Debug,
S: SslClient<HttpStream> + Debug,
impl<S, C> Default for HttpsConnector<S, C> where
C: NetworkConnector + Default,
S: SslClient<HttpStream> + Default,
[src]
C: NetworkConnector + Default,
S: SslClient<HttpStream> + Default,
fn default() -> HttpsConnector<S, C>
[src]
impl<S, C> NetworkConnector for HttpsConnector<S, C> where
C: NetworkConnector<Stream = HttpStream>,
S: SslClient<HttpStream>,
[src]
C: NetworkConnector<Stream = HttpStream>,
S: SslClient<HttpStream>,
type Stream = HttpsStream<<S as SslClient<HttpStream>>::Stream>
Type of Stream
to create
fn connect(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<<HttpsConnector<S, C> as NetworkConnector>::Stream, Error>
[src]
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<<HttpsConnector<S, C> as NetworkConnector>::Stream, Error>
Auto Trait Implementations
impl<S, C> RefUnwindSafe for HttpsConnector<S, C> where
C: RefUnwindSafe,
S: RefUnwindSafe,
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, C> Send for HttpsConnector<S, C> where
C: Send,
S: Send,
C: Send,
S: Send,
impl<S, C> Sync for HttpsConnector<S, C> where
C: Sync,
S: Sync,
C: Sync,
S: Sync,
impl<S, C> Unpin for HttpsConnector<S, C> where
C: Unpin,
S: Unpin,
C: Unpin,
S: Unpin,
impl<S, C> UnwindSafe for HttpsConnector<S, C> where
C: UnwindSafe,
S: UnwindSafe,
C: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
[src]
I: Input,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
[src]
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
[src]
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
[src]
A: Array<Item = U>,
F: FnMut(T) -> U,
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,
host: &str,
port: u16,
scheme: &str
) -> Result<HttpStream, Error>
[src]
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<HttpStream, Error>
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> Typeable for T where
T: Any,
[src]
T: Any,