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§

Create a new scoped transaction on the given context.

Explicitly close this transaction.

This transaction will close automatically when it goes out of scope and is dropped. This close method is an optional way to explicitly close the transaction before that.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.