Struct sodium_rust::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.