pub struct ConnectionManagerLayer<T, P, R> { /* private fields */ }Expand description
Layer which adds connection management and converts
to an inner service which accepts ExecuteRequest
from an outer service which accepts http::Request.
Implementations§
Source§impl<T, P, R> ConnectionManagerLayer<T, P, R>
impl<T, P, R> ConnectionManagerLayer<T, P, R>
Sourcepub fn with_manager(self, manager: ConnectionManagerConfig) -> Self
pub fn with_manager(self, manager: ConnectionManagerConfig) -> Self
Set the connection manager configuration.
Sourcepub fn with_optional_manager(
self,
manager: Option<ConnectionManagerConfig>,
) -> Self
pub fn with_optional_manager( self, manager: Option<ConnectionManagerConfig>, ) -> Self
Set the connection manager configuration to an optional value.
Sourcepub fn without_pool(self) -> Self
pub fn without_pool(self) -> Self
Disable connection management.
Trait Implementations§
Source§impl<T, P, R> Clone for ConnectionManagerLayer<T, P, R>
impl<T, P, R> Clone for ConnectionManagerLayer<T, P, R>
Source§impl<T, P, S, R> Layer<S> for ConnectionManagerLayer<T, P, R>
impl<T, P, S, R> Layer<S> for ConnectionManagerLayer<T, P, R>
Auto Trait Implementations§
impl<T, P, R> Freeze for ConnectionManagerLayer<T, P, R>
impl<T, P, R> RefUnwindSafe for ConnectionManagerLayer<T, P, R>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P, R> Send for ConnectionManagerLayer<T, P, R>
impl<T, P, R> Sync for ConnectionManagerLayer<T, P, R>
impl<T, P, R> Unpin for ConnectionManagerLayer<T, P, R>
impl<T, P, R> UnsafeUnpin for ConnectionManagerLayer<T, P, R>where
T: UnsafeUnpin,
P: UnsafeUnpin,
impl<T, P, R> UnwindSafe for ConnectionManagerLayer<T, P, R>where
T: UnwindSafe,
P: 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