Struct sodium::Transaction
source · pub struct Transaction { /* private fields */ }
Expand description
A scoped transaction marker.
An alternative to SodiumCtx::transaction
that creates a struct
that will create a new transaction in the given SodiumCtx
and
hold it open until the Transaction
is dropped.
Implementations§
source§impl Transaction
impl Transaction
sourcepub fn new(sodium_ctx: &SodiumCtx) -> Transaction
pub fn new(sodium_ctx: &SodiumCtx) -> Transaction
Create a new scoped transaction on the given context.
Auto Trait Implementations§
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