pub struct StoreHistoryCut(pub BTreeMap<AuthorStreamId, StoreBatchCommitRef>);Expand description
Exact Store history cut across author streams.
Tuple Fields§
§0: BTreeMap<AuthorStreamId, StoreBatchCommitRef>Implementations§
Source§impl StoreHistoryCut
impl StoreHistoryCut
pub fn from_commits( commits: BTreeMap<AuthorStreamId, StoreBatchCommitRef>, ) -> Self
pub fn position_count(&self) -> usize
pub fn commits(&self) -> &BTreeMap<AuthorStreamId, StoreBatchCommitRef>
pub fn frontier(&self) -> CommitFrontier
pub fn join(self, other: Self) -> Result<Self, StoreProtocolError>
Trait Implementations§
Source§impl Clone for StoreHistoryCut
impl Clone for StoreHistoryCut
Source§fn clone(&self) -> StoreHistoryCut
fn clone(&self) -> StoreHistoryCut
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 StoreHistoryCut
impl Debug for StoreHistoryCut
Source§impl<'de> Deserialize<'de> for StoreHistoryCut
impl<'de> Deserialize<'de> for StoreHistoryCut
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for StoreHistoryCut
impl Ord for StoreHistoryCut
Source§fn cmp(&self, other: &StoreHistoryCut) -> Ordering
fn cmp(&self, other: &StoreHistoryCut) -> Ordering
1.21.0 · 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 StoreHistoryCut
impl PartialEq for StoreHistoryCut
Source§impl PartialOrd for StoreHistoryCut
impl PartialOrd for StoreHistoryCut
Source§impl Serialize for StoreHistoryCut
impl Serialize for StoreHistoryCut
impl Eq for StoreHistoryCut
impl StructuralPartialEq for StoreHistoryCut
Auto Trait Implementations§
impl Freeze for StoreHistoryCut
impl RefUnwindSafe for StoreHistoryCut
impl Send for StoreHistoryCut
impl Sync for StoreHistoryCut
impl Unpin for StoreHistoryCut
impl UnsafeUnpin for StoreHistoryCut
impl UnwindSafe for StoreHistoryCut
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.