pub struct CollectionRecord {
pub epoch: String,
pub version: u64,
pub floor: u64,
pub dirty: bool,
pub rotated_at: u64,
pub reconciled_at: u64,
pub rotate_owed: bool,
}Expand description
One collection’s ledger header (replica_collections).
Fields§
§epoch: StringWhich unbroken run of versions this is: [a-z0-9]{1,16}.
version: u64The head: the version of the latest change; 0 means nothing yet.
floor: u64Deletes at or below this version are forgotten; a device asking from below it gets a full copy.
dirty: boolReconcile before the next pull.
rotated_at: u64Unix ms of the last epoch rotation.
reconciled_at: u64Unix ms of the last reconcile.
rotate_owed: boolA rotation was asked for within a minute of the last one and is still to happen. It happens before the next version is assigned, or at the first ledger operation once the minute has passed, whichever comes first; it is never dropped.
Trait Implementations§
Source§impl Clone for CollectionRecord
impl Clone for CollectionRecord
Source§impl Debug for CollectionRecord
impl Debug for CollectionRecord
impl Eq for CollectionRecord
Source§impl From<&CollectionRecord> for Head
impl From<&CollectionRecord> for Head
Source§fn from(record: &CollectionRecord) -> Self
fn from(record: &CollectionRecord) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CollectionRecord
impl PartialEq for CollectionRecord
impl StructuralPartialEq for CollectionRecord
Auto Trait Implementations§
impl Forget for CollectionRecord
impl Freeze for CollectionRecord
impl Move for CollectionRecord
impl RefUnwindSafe for CollectionRecord
impl Send for CollectionRecord
impl Sync for CollectionRecord
impl Unpin for CollectionRecord
impl UnsafeUnpin for CollectionRecord
impl UnwindSafe for CollectionRecord
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