Enum corundum::stm::Notifier[][src]

pub enum Notifier<A: MemPool> {
    Atomic(Ptr<u8, A>),
    NonAtomic(Ptr<u8, A>),
    None,
}
Expand description

A data-log notification type

This is used to notify the owner that the underlying data is logged, so that theres is no need for further log taking. This is done by updating a flag of type u8 which is a part of the owner’s structure. The Notifier object keeps a pointer to the flag and updates it accordingly. The pointer is persistent meaning that it remains valid after restart of crash.

Variants

Atomic(Ptr<u8, A>)

Atomically update the log flag

NonAtomic(Ptr<u8, A>)

Non-atomically update the flag

None

There is no log flag

Implementations

Update the owner’s flag

Returns the offset of the log flag in the pool.

The notifier contains a pointer to the flag which is a part of the owner construct. If there is no specified flag, it returns u64::MAX.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.