pub struct HeldStamp {
pub stamp: Stamp,
}Expand description
A held stamp (core 0.110 §7.5; #986’s J1): CH · run · seq, a
snapshot’s header with no body. CH is form 7, the run’s width bit and
tag 0: 0xe0 with a 16-bit run, 0xf0 with a 32-bit one. It names one
mutation of one state member by its in-band stamp; the seq’s place holds
the mutation’s seq, never an asof. The same bytes ride a state GET, “I
hold this member at (run, seq)”, and that GET’s reply, “its last
mutation is (run, seq)”, each under zenoh/bytes (ENCODING).
Fields§
§stamp: StampThe in-band stamp of the mutation it names: its owner’s run, in width and value, and the mutation’s seq. On a GET, the mutation its reader holds for the member; on a reply, the member’s last.
Implementations§
Source§impl HeldStamp
impl HeldStamp
Sourcepub fn parse(bytes: &[u8]) -> Result<HeldStamp, Refusal>
pub fn parse(bytes: &[u8]) -> Result<HeldStamp, Refusal>
A state GET’s payload read as a held stamp (§7.5, “A held stamp on
a state GET”, step 3), without the contract and without the GET’s
key, or the first refusal that applies. The Encoding is not read,
nor is a payload of no byte told apart: read_get reads both
first.
§Errors
Refusal::WrongSample for a form other than 7 (sample_kind),
Refusal::HeldTag (tag), Refusal::Short or
Refusal::Trailing, in that order; Refusal::Empty for no
byte.
Trait Implementations§
impl Copy for HeldStamp
impl Eq for HeldStamp
impl StructuralPartialEq for HeldStamp
Auto Trait Implementations§
impl Forget for HeldStamp
impl Freeze for HeldStamp
impl Move for HeldStamp
impl RefUnwindSafe for HeldStamp
impl Send for HeldStamp
impl Sync for HeldStamp
impl Unpin for HeldStamp
impl UnsafeUnpin for HeldStamp
impl UnwindSafe for HeldStamp
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