Struct memcache_async::ascii::Protocol[][src]

pub struct Protocol<S: AsyncRead + AsyncWrite> { /* fields omitted */ }

Implementations

Creates the ASCII protocol on a stream.

Returns the value for given key as bytes. If the value doesn’t exist, std::io::ErrorKind::NotFound is returned.

Returns values for multiple keys in a single call as a HashMap from keys to found values. If a key is not present in memcached it will be absent from returned map.

Add a key. If the value exist, std::io::ErrorKind::AllreadyExists is returned.

Set key to given value and don’t wait for response.

Delete a key and don’t wait for response.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.