pub struct CowCellWriteTxn<'a, T: 'a> { /* private fields */ }
Expand description

A CowCell Write Transaction handle.

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

Changes are only stored in this structure until you call commit. To abort/ rollback a change, don’t call commit and allow the write transaction to be dropped. This causes the CowCell to unlock allowing the next writer to proceed.

Implementations

Access a mutable pointer of the data in the CowCell. This data is only visible to the write transaction object in this thread, until you call commit().

Commit the changes made in this write transactions to the CowCell. This will consume the transaction so no further changes can be made after this is called. Not calling this in a block, is equivalent to an abort/rollback of the transaction.

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.