pub struct EbrCellWriteTxn<'a, T: 'static + Clone + Send + Sync> { /* private fields */ }
Expand description

An EbrCell Write Transaction handle.

This allows mutation of the content of the EbrCell without blocking or affecting current readers.

Changes are only stored in the structure until you call commit: to abort a change, don’t call commit and allow the write transaction to go out of scope. This causes the EbrCell to unlock allowing other writes to proceed.

Implementations

Access a mutable pointer of the data in the EbrCell. This data is only visible to this write transaction object in this thread until you call ‘commit’.

Commit the changes in this write transaction to the EbrCell. This will consume the transaction so that further changes can not be made to it after this function is called.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.