pub struct HeldContent {
pub holder: Symbol,
pub key: ContentKey,
}Expand description
A claim that one node holds one content id in its cassette.
This is the complete topology fact for the content-addressed store: not a
route, not a partition, just an immutable statement that holder can answer
any request whose ContentKey equals key. Because content never mutates,
a HeldContent fact is monotonic and never invalidated.
Fields§
§holder: SymbolThe node that holds the content.
key: ContentKeyThe content-addressed request key held by the node.
Implementations§
Source§impl HeldContent
impl HeldContent
Sourcepub fn new(holder: Symbol, key: ContentKey) -> Self
pub fn new(holder: Symbol, key: ContentKey) -> Self
Creates a held-content claim for holder and key.
Trait Implementations§
Source§impl Clone for HeldContent
impl Clone for HeldContent
Source§fn clone(&self) -> HeldContent
fn clone(&self) -> HeldContent
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 HeldContent
impl Debug for HeldContent
impl Eq for HeldContent
Source§impl Ord for HeldContent
impl Ord for HeldContent
Source§fn cmp(&self, other: &HeldContent) -> Ordering
fn cmp(&self, other: &HeldContent) -> 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 HeldContent
impl PartialEq for HeldContent
Source§fn eq(&self, other: &HeldContent) -> bool
fn eq(&self, other: &HeldContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HeldContent
impl PartialOrd for HeldContent
impl StructuralPartialEq for HeldContent
Auto Trait Implementations§
impl Freeze for HeldContent
impl RefUnwindSafe for HeldContent
impl Send for HeldContent
impl Sync for HeldContent
impl Unpin for HeldContent
impl UnsafeUnpin for HeldContent
impl UnwindSafe for HeldContent
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