[−][src]Enum crndm::stm::Notifier
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
Atomically update the log flag
Non-atomically update the flag
There is no log flag
Implementations
impl<A: MemPool> Notifier<A>
[src]
pub fn update(&mut self, v: u8)
[src]
Update the owner's flag
pub fn off(&self) -> u64
[src]
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
impl<A: MemPool> Clone for Notifier<A>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: MemPool> Copy for Notifier<A>
[src]
Auto Trait Implementations
impl<A> LooseTxInUnsafe for Notifier<A> where
A: LooseTxInUnsafe,
[src]
A: LooseTxInUnsafe,
impl<A> PSafe for Notifier<A>
[src]
impl<A> RefUnwindSafe for Notifier<A> where
A: RefUnwindSafe,
[src]
A: RefUnwindSafe,
impl<A> !Send for Notifier<A>
[src]
impl<A> !Sync for Notifier<A>
[src]
impl<A> TxInSafe for Notifier<A> where
A: TxInSafe,
[src]
A: TxInSafe,
impl<A> !TxOutSafe for Notifier<A>
[src]
impl<A> Unpin for Notifier<A> where
A: Unpin,
[src]
A: Unpin,
impl<A> UnwindSafe for Notifier<A> where
A: UnwindSafe,
[src]
A: UnwindSafe,
impl<A> VSafe for Notifier<A> where
A: VSafe,
[src]
A: VSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,