Struct hyper_boring::HttpsLayer[][src]

pub struct HttpsLayer { /* fields omitted */ }

A layer which wraps services in an HttpsConnector.

Implementations

impl HttpsLayer[src]

pub fn new() -> Result<HttpsLayer, ErrorStack>[src]

Creates a new HttpsLayer with default settings.

ALPN is configured to support both HTTP/1 and HTTP/1.1.

pub fn with_connector(
    ssl: SslConnectorBuilder
) -> Result<HttpsLayer, ErrorStack>
[src]

Creates a new HttpsLayer.

The session cache configuration of ssl will be overwritten.

pub fn set_callback<F>(&mut self, callback: F) where
    F: Fn(&mut ConnectConfiguration, &Uri) -> Result<(), ErrorStack> + 'static + Sync + Send
[src]

Registers a callback which can customize the configuration of each connection.

Trait Implementations

impl<S> Layer<S> for HttpsLayer[src]

type Service = HttpsConnector<S>

The wrapped service

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> Instrument 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.