pub struct DbTxn<'a> { /* private fields */ }
Implementations§
source§impl DbTxn<'_>
impl DbTxn<'_>
pub fn migrate(&mut self) -> Result<(), CacheError>
pub fn commit(self) -> Result<(), CacheError>
pub fn invalidate(&mut self) -> Result<(), CacheError>
pub fn clear(&mut self) -> Result<(), CacheError>
pub fn clear_hsm(&mut self) -> Result<(), CacheError>
pub fn get_hsm_machine_key( &mut self, ) -> Result<Option<LoadableMachineKey>, CacheError>
pub fn insert_hsm_machine_key( &mut self, machine_key: &LoadableMachineKey, ) -> Result<(), CacheError>
pub fn get_hsm_hmac_key( &mut self, ) -> Result<Option<LoadableHmacKey>, CacheError>
pub fn insert_hsm_hmac_key( &mut self, hmac_key: &LoadableHmacKey, ) -> Result<(), CacheError>
pub fn get_account( &mut self, account_id: &Id, ) -> Result<Option<(UserToken, u64)>, CacheError>
pub fn get_accounts(&mut self) -> Result<Vec<UserToken>, CacheError>
pub fn update_account( &mut self, account: &UserToken, expire: u64, ) -> Result<(), CacheError>
pub fn delete_account(&mut self, a_uuid: Uuid) -> Result<(), CacheError>
pub fn get_group( &mut self, grp_id: &Id, ) -> Result<Option<(GroupToken, u64)>, CacheError>
pub fn get_group_members( &mut self, g_uuid: Uuid, ) -> Result<Vec<UserToken>, CacheError>
pub fn get_groups(&mut self) -> Result<Vec<GroupToken>, CacheError>
pub fn update_group( &mut self, grp: &GroupToken, expire: u64, ) -> Result<(), CacheError>
pub fn delete_group(&mut self, g_uuid: Uuid) -> Result<(), CacheError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DbTxn<'a>
impl<'a> !RefUnwindSafe for DbTxn<'a>
impl<'a> Send for DbTxn<'a>
impl<'a> !Sync for DbTxn<'a>
impl<'a> Unpin for DbTxn<'a>
impl<'a> !UnwindSafe for DbTxn<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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