pub struct Topic { /* private fields */ }
Implementations§
Source§impl Topic
impl Topic
pub fn get(&self, key: &str) -> Result<Option<Value>, Error>
pub async fn get_for_update( &self, key: &str, ) -> Result<(KeyUpdater, Option<Value>), Error>
pub fn set(&self, key: &str, value: &[u8], ttl: Duration) -> Result<(), Error>
pub fn delete(&self, key: &str) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
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