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>(&mut self, key: &str, value: T) -> Result<()>
pub async fn put_multiple<T: Serialize>(&mut self, values: T) -> Result<()>
pub async fn delete(&mut self, key: &str) -> Result<bool>
pub async fn delete_multiple( &mut self, keys: Vec<impl Deref<Target = str>>, ) -> Result<usize>
pub async fn delete_all(&mut self) -> Result<()>
pub async fn list(&self) -> Result<Map>
pub async fn list_with_options(&self, opts: ListOptions<'_>) -> Result<Map>
pub fn rollback(&mut self) -> Result<()>
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