pub struct Member {
pub key: String,
pub stamp: Stamp,
pub tag: Tag,
pub confirmation: Confirmation,
pub record: Option<Vec<u8>>,
}Expand description
One entry of a page as the per-key reply it stands for (core §4.2’s
“What a profile reads”): on its member’s key,
with its stamp, a live entry the put of its record and a tombstone the
delete. A reader that reads per-key replies reads these the same way:
Member::payload is the bytes the mutation put, and
Member::attachment the delete’s.
Fields§
§key: StringThe page’s key, then / and the id (member_key).
stamp: StampIts own run, else the page’s, and its seq.
tag: TagCH’s tag: the page’s, the collection’s type’s, as the mutation’s.
confirmation: ConfirmationA live entry’s confirmation; a tombstone’s is
Confirmation::None.
record: Option<Vec<u8>>A live entry’s record; None for a tombstone.
Implementations§
Source§impl Member
impl Member
Sourcepub const fn is_tombstone(&self) -> bool
pub const fn is_tombstone(&self) -> bool
Whether it is a tombstone: a delete within the window (S3).
Sourcepub fn payload(&self) -> Option<Vec<u8>>
pub fn payload(&self) -> Option<Vec<u8>>
A live entry’s put, as the owner’s per-key reply carries it:
CH · run · seq · record, CH a mutation’s with the page’s tag and
the width its run takes. None for a tombstone.
Sourcepub fn attachment(&self) -> Option<Vec<u8>>
pub fn attachment(&self) -> Option<Vec<u8>>
A tombstone’s delete, as the owner’s reply_del carries it in its
attachment: CH · run · seq. None for a live entry.
Trait Implementations§
impl Eq for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Forget for Member
impl Freeze for Member
impl Move for Member
impl RefUnwindSafe for Member
impl Send for Memberwhere
RawVecInner: Send,
impl Sync for Memberwhere
RawVecInner: Sync,
impl Unpin for Member
impl UnsafeUnpin for Member
impl UnwindSafe for Memberwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more