pub struct HttpConnectorLayer<I1 = (), I2 = ()> { /* private fields */ }
Expand description
A Layer
that produces an HttpConnector
.
Implementations§
Source§impl HttpConnectorLayer
impl HttpConnectorLayer
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new HttpConnectorLayer
.
Source§impl<I1, I2> HttpConnectorLayer<I1, I2>
impl<I1, I2> HttpConnectorLayer<I1, I2>
pub fn with_jit_req_inspector<T>( self, http_req_inspector: T, ) -> HttpConnectorLayer<T, I2>
pub fn with_svc_req_inspector<T>( self, http_req_inspector: T, ) -> HttpConnectorLayer<I1, T>
Trait Implementations§
Source§impl<I1, I2> Clone for HttpConnectorLayer<I1, I2>
impl<I1, I2> Clone for HttpConnectorLayer<I1, I2>
Source§impl Default for HttpConnectorLayer
impl Default for HttpConnectorLayer
Source§impl<I1: Clone, I2: Clone, S> Layer<S> for HttpConnectorLayer<I1, I2>
impl<I1: Clone, I2: Clone, S> Layer<S> for HttpConnectorLayer<I1, I2>
Source§type Service = HttpConnector<S, I1, I2>
type Service = HttpConnector<S, I1, I2>
The service produced by the layer.
Source§fn layer(&self, inner: S) -> Self::Service
fn layer(&self, inner: S) -> Self::Service
Wrap the given service with the middleware, returning a new service.
Source§fn into_layer(self, inner: S) -> Self::Service
fn into_layer(self, inner: S) -> Self::Service
Same as
layer
but consuming self after the service was created. Read moreAuto Trait Implementations§
impl<I1, I2> Freeze for HttpConnectorLayer<I1, I2>
impl<I1, I2> RefUnwindSafe for HttpConnectorLayer<I1, I2>where
I1: RefUnwindSafe,
I2: RefUnwindSafe,
impl<I1, I2> Send for HttpConnectorLayer<I1, I2>
impl<I1, I2> Sync for HttpConnectorLayer<I1, I2>
impl<I1, I2> Unpin for HttpConnectorLayer<I1, I2>
impl<I1, I2> UnwindSafe for HttpConnectorLayer<I1, I2>where
I1: UnwindSafe,
I2: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more