pub struct VerificationConsumption { /* private fields */ }Expand description
A database consumption prepared outside the transaction that spends it.
Implementations§
Source§impl VerificationConsumption
impl VerificationConsumption
Sourcepub async fn consume_in<S: AuthSchema>(
&self,
tx: &dyn AuthTransaction<S>,
) -> AuthResult<Option<VerificationSnapshot>>
pub async fn consume_in<S: AuthSchema>( &self, tx: &dyn AuthTransaction<S>, ) -> AuthResult<Option<VerificationSnapshot>>
Spend the verification on tx, as VerificationService::consume
does. A rolled-back transaction leaves it usable.
§Errors
Propagates transaction storage errors.
Sourcepub async fn evict(&self) -> AuthResult<()>
pub async fn evict(&self) -> AuthResult<()>
Drop cached copies once the consuming transaction has committed.
§Errors
Propagates secondary-storage errors.
Auto Trait Implementations§
impl !RefUnwindSafe for VerificationConsumption
impl !UnwindSafe for VerificationConsumption
impl Freeze for VerificationConsumption
impl Send for VerificationConsumption
impl Sync for VerificationConsumption
impl Unpin for VerificationConsumption
impl UnsafeUnpin for VerificationConsumption
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