pub struct PoolEndpoint<M: ManageConnection> { /* private fields */ }Expand description
The endpoint which retrieves a connection from a connection pool.
Trait Implementations§
Source§impl<M: Clone + ManageConnection> Clone for PoolEndpoint<M>
impl<M: Clone + ManageConnection> Clone for PoolEndpoint<M>
Source§fn clone(&self) -> PoolEndpoint<M>
fn clone(&self) -> PoolEndpoint<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug + ManageConnection> Debug for PoolEndpoint<M>
impl<M: Debug + ManageConnection> Debug for PoolEndpoint<M>
Source§impl<'a, M> Endpoint<'a> for PoolEndpoint<M>where
M: ManageConnection + 'a,
impl<'a, M> Endpoint<'a> for PoolEndpoint<M>where
M: ManageConnection + 'a,
Source§type Output = (PooledConnection<M>,)
type Output = (PooledConnection<M>,)
The inner type associated with this endpoint.
Source§fn apply(&'a self, _: &mut ApplyContext<'_>) -> ApplyResult<Self::Future>
fn apply(&'a self, _: &mut ApplyContext<'_>) -> ApplyResult<Self::Future>
Perform checking the incoming HTTP request and returns
an instance of the associated Future if matched.
Source§fn with_output<T>(self) -> Self
fn with_output<T>(self) -> Self
Add an annotation that the associated type
Output is fixed to T.Auto Trait Implementations§
impl<M> Freeze for PoolEndpoint<M>
impl<M> !RefUnwindSafe for PoolEndpoint<M>
impl<M> Send for PoolEndpoint<M>
impl<M> Sync for PoolEndpoint<M>
impl<M> Unpin for PoolEndpoint<M>
impl<M> !UnwindSafe for PoolEndpoint<M>
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<'a, E> EndpointWrapExt<'a> for Ewhere
E: Endpoint<'a>,
impl<'a, E> EndpointWrapExt<'a> for Ewhere
E: Endpoint<'a>,
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