Struct ntex_redis::SimpleClient
source · pub struct SimpleClient { /* private fields */ }
Expand description
Redis client
Implementations§
source§impl SimpleClient
impl SimpleClient
sourcepub async fn exec<U>(&self, cmd: U) -> Result<U::Output, CommandError>where
U: Command,
pub async fn exec<U>(&self, cmd: U) -> Result<U::Output, CommandError>where
U: Command,
Execute redis command and wait result
sourcepub fn subscribe(
self,
cmd: SubscribeOutputCommand
) -> Result<SubscriptionClient<SubscribeOutputCommand>, CommandError>
pub fn subscribe( self, cmd: SubscribeOutputCommand ) -> Result<SubscriptionClient<SubscribeOutputCommand>, CommandError>
Execute redis SUBSCRIBE command and act with output as stream
Auto Trait Implementations§
impl !RefUnwindSafe for SimpleClient
impl !Send for SimpleClient
impl !Sync for SimpleClient
impl Unpin for SimpleClient
impl !UnwindSafe for SimpleClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more