pub struct RecordHead { /* private fields */ }Expand description
One immutable operation that remains a causal head for a record.
Implementations§
Source§impl RecordHead
impl RecordHead
Sourcepub fn new(
commit_id: CommitId,
author: AuthorId,
sequence: u64,
mutation: MaterializedRecord,
) -> Self
pub fn new( commit_id: CommitId, author: AuthorId, sequence: u64, mutation: MaterializedRecord, ) -> Self
Constructs a durable record-head entry from an authenticated commit operation.
pub const fn commit_id(&self) -> CommitId
pub const fn sequence(&self) -> u64
pub const fn mutation(&self) -> &MaterializedRecord
Trait Implementations§
Source§impl Clone for RecordHead
impl Clone for RecordHead
Source§fn clone(&self) -> RecordHead
fn clone(&self) -> RecordHead
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordHead
impl Debug for RecordHead
Source§impl PartialEq for RecordHead
impl PartialEq for RecordHead
impl Eq for RecordHead
impl StructuralPartialEq for RecordHead
Auto Trait Implementations§
impl Freeze for RecordHead
impl RefUnwindSafe for RecordHead
impl Send for RecordHead
impl Sync for RecordHead
impl Unpin for RecordHead
impl UnwindSafe for RecordHead
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