Struct PooledConnectorLayer
pub struct PooledConnectorLayer<P, R> { /* private fields */ }
Implementations§
§impl<P, R> PooledConnectorLayer<P, R>
impl<P, R> PooledConnectorLayer<P, R>
pub fn new(pool: P, req_to_conn_id: R) -> PooledConnectorLayer<P, R>
pub fn maybe_with_wait_for_pool_timeout(
self,
timeout: Option<Duration>,
) -> PooledConnectorLayer<P, R>
pub fn maybe_with_wait_for_pool_timeout( self, timeout: Option<Duration>, ) -> PooledConnectorLayer<P, R>
Set timeout after which requesting a connection from the pool will timeout
If no timeout is specified there will be no limit, this could be dangerous depending on how many users are waiting for a connection
pub fn maybe_set_wait_for_pool_timeout(
&mut self,
timeout: Option<Duration>,
) -> &mut PooledConnectorLayer<P, R>
pub fn maybe_set_wait_for_pool_timeout( &mut self, timeout: Option<Duration>, ) -> &mut PooledConnectorLayer<P, R>
Set timeout after which requesting a connection from the pool will timeout
If no timeout is specified there will be no limit, this could be dangerous depending on how many users are waiting for a connection
pub fn with_wait_for_pool_timeout(
self,
timeout: Duration,
) -> PooledConnectorLayer<P, R>
pub fn with_wait_for_pool_timeout( self, timeout: Duration, ) -> PooledConnectorLayer<P, R>
Set timeout after which requesting a connection from the pool will timeout
If no timeout is specified there will be no limit, this could be dangerous depending on how many users are waiting for a connection
pub fn set_wait_for_pool_timeout(
&mut self,
timeout: Duration,
) -> &mut PooledConnectorLayer<P, R>
pub fn set_wait_for_pool_timeout( &mut self, timeout: Duration, ) -> &mut PooledConnectorLayer<P, R>
Set timeout after which requesting a connection from the pool will timeout
If no timeout is specified there will be no limit, this could be dangerous depending on how many users are waiting for a connection
pub fn without_wait_for_pool_timeout(self) -> PooledConnectorLayer<P, R>
pub fn without_wait_for_pool_timeout(self) -> PooledConnectorLayer<P, R>
Set timeout after which requesting a connection from the pool will timeout
If no timeout is specified there will be no limit, this could be dangerous depending on how many users are waiting for a connection
pub fn unset_wait_for_pool_timeout(&mut self) -> &mut PooledConnectorLayer<P, R>
pub fn unset_wait_for_pool_timeout(&mut self) -> &mut PooledConnectorLayer<P, R>
Set timeout after which requesting a connection from the pool will timeout
If no timeout is specified there will be no limit, this could be dangerous depending on how many users are waiting for a connection
Trait Implementations§
§impl<S, P, R> Layer<S> for PooledConnectorLayer<P, R>
impl<S, P, R> Layer<S> for PooledConnectorLayer<P, R>
§type Service = PooledConnector<S, P, R>
type Service = PooledConnector<S, P, R>
§fn layer(&self, inner: S) -> <PooledConnectorLayer<P, R> as Layer<S>>::Service
fn layer(&self, inner: S) -> <PooledConnectorLayer<P, R> as Layer<S>>::Service
§fn into_layer(
self,
inner: S,
) -> <PooledConnectorLayer<P, R> as Layer<S>>::Service
fn into_layer( self, inner: S, ) -> <PooledConnectorLayer<P, R> as Layer<S>>::Service
layer
but consuming self after the service was created. Read moreAuto Trait Implementations§
impl<P, R> Freeze for PooledConnectorLayer<P, R>
impl<P, R> RefUnwindSafe for PooledConnectorLayer<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for PooledConnectorLayer<P, R>
impl<P, R> Sync for PooledConnectorLayer<P, R>
impl<P, R> Unpin for PooledConnectorLayer<P, R>
impl<P, R> UnwindSafe for PooledConnectorLayer<P, R>where
P: UnwindSafe,
R: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more