GenericClient

Trait GenericClient 

Source
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§

Source

type Stream

Stream object that used communicating with server.

Required Methods§

Source

fn stream(&self) -> &Self::Stream

Retrieve stream by immutable reference.

Source

fn stream_mut(&mut self) -> &mut Self::Stream

Retrieve stream by mutable reference.

Source

fn capability(&self) -> CapabilityFlags

Client side capability flags.

Implementations on Foreign Types§

Source§

impl<C: GenericClient> GenericClient for Box<C>

Source§

type Stream = <C as GenericClient>::Stream

Source§

fn stream(&self) -> &Self::Stream

Source§

fn stream_mut(&mut self) -> &mut Self::Stream

Source§

fn capability(&self) -> CapabilityFlags

Source§

impl<C: GenericClient> GenericClient for MutexGuard<'_, C>

Source§

type Stream = <C as GenericClient>::Stream

Source§

fn stream(&self) -> &Self::Stream

Source§

fn stream_mut(&mut self) -> &mut Self::Stream

Source§

fn capability(&self) -> CapabilityFlags

Source§

impl<M: ManageConnection> GenericClient for PooledConnection<'_, M>

Available on crate feature bb8-integration only.
Source§

impl<M: ManageConnection> GenericClient for PooledConnection<M>

Available on crate feature r2d2-integration only.

Implementors§