Struct ntex_redis::Client [−][src]
pub struct Client { /* fields omitted */ }Shared redis client
Implementations
impl Client[src]
impl Client[src]pub fn exec<T>(
&self,
cmd: T
) -> impl Future<Output = Result<T::Output, CommandError>> where
T: Command, [src]
&self,
cmd: T
) -> impl Future<Output = Result<T::Output, CommandError>> where
T: Command,
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 Service 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.
fn poll_ready(&self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>[src]
fn call(&self, req: Request) -> Self::Future[src]
pub fn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
pub fn map<F, R>(self, f: F) -> Map<Self, F, R> where
F: FnMut(Self::Response) -> R,
F: FnMut(Self::Response) -> R,
pub fn map_err<F, E>(self, f: F) -> MapErr<Self, F, E> where
F: Fn(Self::Error) -> E,
F: Fn(Self::Error) -> E,
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !RefUnwindSafe for Clientimpl !UnwindSafe for Client
impl !UnwindSafe for ClientBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> IntoService<T> for T where
T: Service,
impl<T> IntoService<T> for T where
T: Service, pub fn into_service(self) -> T
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self