pub struct ActivityEdgeSnapshot { /* private fields */ }Expand description
Fingerprint evidence captured for one activity edge at commit time.
Implementations§
Source§impl ActivityEdgeSnapshot
impl ActivityEdgeSnapshot
Sourcepub fn new(
revision_sequence: u64,
fingerprints: Vec<FingerprintSnapshot>,
) -> Result<Self>
pub fn new( revision_sequence: u64, fingerprints: Vec<FingerprintSnapshot>, ) -> Result<Self>
Creates a canonical snapshot captured at revision_sequence.
An empty fingerprint set explicitly records that the representation had no fingerprint evidence. This differs from an absent migrated snapshot.
§Errors
Returns an error for sequence zero or duplicate fingerprint domains.
Sourcepub const fn revision_sequence(&self) -> u64
pub const fn revision_sequence(&self) -> u64
Returns the production revision current when storage captured the edge.
Sourcepub fn fingerprints(&self) -> &[FingerprintSnapshot]
pub fn fingerprints(&self) -> &[FingerprintSnapshot]
Returns captured fingerprint domains in canonical order.
Trait Implementations§
Source§impl Clone for ActivityEdgeSnapshot
impl Clone for ActivityEdgeSnapshot
Source§fn clone(&self) -> ActivityEdgeSnapshot
fn clone(&self) -> ActivityEdgeSnapshot
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 Debug for ActivityEdgeSnapshot
impl Debug for ActivityEdgeSnapshot
impl Eq for ActivityEdgeSnapshot
Source§impl Ord for ActivityEdgeSnapshot
impl Ord for ActivityEdgeSnapshot
Source§fn cmp(&self, other: &ActivityEdgeSnapshot) -> Ordering
fn cmp(&self, other: &ActivityEdgeSnapshot) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ActivityEdgeSnapshot
impl PartialEq for ActivityEdgeSnapshot
Source§impl PartialOrd for ActivityEdgeSnapshot
impl PartialOrd for ActivityEdgeSnapshot
impl StructuralPartialEq for ActivityEdgeSnapshot
Auto Trait Implementations§
impl Freeze for ActivityEdgeSnapshot
impl RefUnwindSafe for ActivityEdgeSnapshot
impl Send for ActivityEdgeSnapshot
impl Sync for ActivityEdgeSnapshot
impl Unpin for ActivityEdgeSnapshot
impl UnsafeUnpin for ActivityEdgeSnapshot
impl UnwindSafe for ActivityEdgeSnapshot
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