[−][src]Struct hyper_openssl::HttpsLayer
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]
ssl: SslConnectorBuilder
) -> Result<HttpsLayer, ErrorStack>
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]
F: Fn(&mut ConnectConfiguration, &Uri) -> Result<(), ErrorStack> + 'static + Sync + Send,
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
fn layer(&self, inner: S) -> HttpsConnector<S>[src]
Auto Trait Implementations
impl !RefUnwindSafe for HttpsLayer
impl Send for HttpsLayer
impl Sync for HttpsLayer
impl Unpin for HttpsLayer
impl !UnwindSafe for HttpsLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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>,