Struct rsmc_tokio::TokioConnection [−][src]
pub struct TokioConnection { /* fields omitted */ }
Expand description
A TokioConnection uses the tokio runtime to form TCP connections to memcached.
Trait Implementations
Connect to a memcached server over TCP.
Read to fill the incoming buffer.
Write an entire buffer to the TCP stream.
fn read_packet<'life0, 'async_trait, P>(
&'life0 mut self,
compressor: P
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
P: Compressor + 'async_trait,
Self: 'async_trait,
fn read_packet<'life0, 'async_trait, P>(
&'life0 mut self,
compressor: P
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
P: Compressor + 'async_trait,
Self: 'async_trait,
Read a packet response, possibly decompressing it. It is most likely unnecessary to implement this yourself. Read more
Write a packet request, possibly compressing it. It is most likely unnecessary to implement this yourself. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TokioConnection
impl Send for TokioConnection
impl Sync for TokioConnection
impl Unpin for TokioConnection
impl !UnwindSafe for TokioConnection
Blanket Implementations
Mutably borrows from an owned value. Read more