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_root_storage_key( &mut self, ) -> Result<Option<LoadableStorageKey>, CacheError>
pub fn insert_hsm_root_storage_key( &mut self, machine_key: &LoadableStorageKey, ) -> Result<(), CacheError>
pub fn get_hsm_hmac_key( &mut self, ) -> Result<Option<LoadableHmacS256Key>, CacheError>
pub fn insert_hsm_hmac_key( &mut self, hmac_key: &LoadableHmacS256Key, ) -> 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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].