pub trait GenericClient {
type Stream;
// Required methods
fn stream(&self) -> &Self::Stream;
fn stream_mut(&mut self) -> &mut Self::Stream;
fn capability(&self) -> CapabilityFlags;
}Expand description
Common client-capable implementation.
Required Associated Types§
Required Methods§
Sourcefn stream_mut(&mut self) -> &mut Self::Stream
fn stream_mut(&mut self) -> &mut Self::Stream
Retrieve stream by mutable reference.
Sourcefn capability(&self) -> CapabilityFlags
fn capability(&self) -> CapabilityFlags
Client side capability flags.
Implementations on Foreign Types§
Source§impl<C: GenericClient> GenericClient for Box<C>
impl<C: GenericClient> GenericClient for Box<C>
type Stream = <C as GenericClient>::Stream
fn stream(&self) -> &Self::Stream
fn stream_mut(&mut self) -> &mut Self::Stream
fn capability(&self) -> CapabilityFlags
Source§impl<C: GenericClient> GenericClient for MutexGuard<'_, C>
impl<C: GenericClient> GenericClient for MutexGuard<'_, C>
type Stream = <C as GenericClient>::Stream
fn stream(&self) -> &Self::Stream
fn stream_mut(&mut self) -> &mut Self::Stream
fn capability(&self) -> CapabilityFlags
Source§impl<M: ManageConnection> GenericClient for PooledConnection<'_, M>where
M::Connection: GenericClient,
Available on crate feature bb8-integration only.
impl<M: ManageConnection> GenericClient for PooledConnection<'_, M>where
M::Connection: GenericClient,
Available on crate feature
bb8-integration only.type Stream = <<M as ManageConnection>::Connection as GenericClient>::Stream
fn stream(&self) -> &Self::Stream
fn stream_mut(&mut self) -> &mut Self::Stream
fn capability(&self) -> CapabilityFlags
Source§impl<M: ManageConnection> GenericClient for PooledConnection<M>where
M::Connection: GenericClient,
Available on crate feature r2d2-integration only.
impl<M: ManageConnection> GenericClient for PooledConnection<M>where
M::Connection: GenericClient,
Available on crate feature
r2d2-integration only.