Struct ntex_redis::Client[][src]

pub struct Client { /* fields omitted */ }

Shared redis client

Implementations

impl Client[src]

pub fn exec<T>(
    &self,
    cmd: T
) -> impl Future<Output = Result<T::Output, CommandError>> where
    T: Command
[src]

Execute redis command

pub async fn flushdb(&self) -> Result<(), Error>[src]

Delete all the keys of the currently selected DB.

pub fn is_connected(&self) -> bool[src]

Returns true if underlying transport is connected to redis

Trait Implementations

impl Clone for Client[src]

impl Debug for Client[src]

impl Service for Client[src]

type Request = Request

Requests handled by the service.

type Response = Response

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Either<CommandResult, Ready<Response, Error>>

The future response value.

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl !Send for Client

impl !Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoService<T> for T where
    T: Service, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.