pub struct Transaction { /* private fields */ }
Implementations§
Source§impl Transaction
impl Transaction
pub async fn get<T: DeserializeOwned>(&self, key: &str) -> Result<T>
pub async fn get_multiple( &self, keys: Vec<impl Deref<Target = str>>, ) -> Result<Map>
pub async fn put<T: Serialize>(&self, key: &str, value: T) -> Result<()>
pub async fn put_multiple<T: Serialize>(&self, values: T) -> Result<()>
pub async fn delete(&self, key: &str) -> Result<bool>
pub async fn delete_multiple( &self, keys: Vec<impl Deref<Target = str>>, ) -> Result<usize>
pub async fn delete_all(&self) -> Result<()>
pub async fn list(&self) -> Result<Map>
pub async fn list_with_options(&self, opts: ListOptions<'_>) -> Result<Map>
pub fn rollback(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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