Struct tokio_memcache::Connection
[−]
[src]
pub struct Connection { pub inner: ClientService<TcpStream, MemcachedProto>, }
Fields
inner: ClientService<TcpStream, MemcachedProto>
Methods
impl Connection
[src]
fn get<K, R>(&self, key: &K) -> BoxFuture<R, MemcacheError> where
K: AsArgument,
R: FromResponse,
K: AsArgument,
R: FromResponse,
fn set<K, V, E>(
&self,
key: &K,
value: &V,
expiration: E
) -> BoxFuture<(), MemcacheError> where
K: AsArgument,
V: AsArgument,
E: Expiration,
&self,
key: &K,
value: &V,
expiration: E
) -> BoxFuture<(), MemcacheError> where
K: AsArgument,
V: AsArgument,
E: Expiration,
fn add<K, V, E>(
&self,
key: &K,
value: &V,
expiration: E
) -> BoxFuture<(), MemcacheError> where
K: AsArgument,
V: AsArgument,
E: Expiration,
&self,
key: &K,
value: &V,
expiration: E
) -> BoxFuture<(), MemcacheError> where
K: AsArgument,
V: AsArgument,
E: Expiration,
fn send(&self, req: Request) -> BoxFuture<Response, MemcacheError>
Send Request
to server.
This method can be used if you need to send a rich request and there is no available wrapper method.
Trait Implementations
impl Service for Connection
[src]
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = MemcacheError
Errors produced by the service.
type Future = BoxFuture<Self::Response, Self::Error>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously.