pub struct BlockingClient { /* private fields */ }Implementations§
Source§impl BlockingClient
impl BlockingClient
pub fn connect<T: ToSocketAddrs>(addr: T) -> Result<BlockingClient>
pub fn get(&mut self, key: &str) -> Result<Option<Bytes>>
pub fn set(&mut self, key: &str, value: Bytes) -> Result<()>
pub fn set_expires( &mut self, key: &str, value: Bytes, expiration: Duration, ) -> Result<()>
pub fn publish(&mut self, channel: &str, message: Bytes) -> Result<u64>
pub fn subscribe(self, channels: Vec<String>) -> Result<BlockingSubscriber>
Auto Trait Implementations§
impl !Freeze for BlockingClient
impl RefUnwindSafe for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl UnwindSafe for BlockingClient
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