pub struct JournalEntry<T> { /* private fields */ }Expand description
One record after the store atomically assigns its ordering sequence.
Implementations§
Source§impl<T> JournalEntry<T>
impl<T> JournalEntry<T>
Sourcepub const fn from_store(sequence: JournalSequence, record: T) -> Self
pub const fn from_store(sequence: JournalSequence, record: T) -> Self
Attach a sequence allocated by the authoritative store.
Sourcepub const fn sequence(&self) -> JournalSequence
pub const fn sequence(&self) -> JournalSequence
Return the store ordering sequence.
Sourcepub fn into_record(self) -> T
pub fn into_record(self) -> T
Consume the envelope and return its record.
Trait Implementations§
Source§impl<T: Clone> Clone for JournalEntry<T>
impl<T: Clone> Clone for JournalEntry<T>
Source§fn clone(&self) -> JournalEntry<T>
fn clone(&self) -> JournalEntry<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for JournalEntry<T>
impl<T: Debug> Debug for JournalEntry<T>
impl<T: Eq> Eq for JournalEntry<T>
Source§impl<T: PartialEq> PartialEq for JournalEntry<T>
impl<T: PartialEq> PartialEq for JournalEntry<T>
impl<T: PartialEq> StructuralPartialEq for JournalEntry<T>
Auto Trait Implementations§
impl<T> Freeze for JournalEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for JournalEntry<T>where
T: RefUnwindSafe,
impl<T> Send for JournalEntry<T>where
T: Send,
impl<T> Sync for JournalEntry<T>where
T: Sync,
impl<T> Unpin for JournalEntry<T>where
T: Unpin,
impl<T> UnsafeUnpin for JournalEntry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JournalEntry<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more