pub enum Reading<'a> {
Plain,
Enveloped(Envelope<'a>),
Framed(Envelope<'a>),
Heartbeat(Envelope<'a>),
Event(Event<'a>),
Snapshot(Envelope<'a>),
Refused(Refusal),
}Expand description
What a put’s payload reads as (read_put).
Variants§
Plain
The sample carries no envelope (carries): its payload is read as
it arrived, by observer §7.3’s decode order.
Enveloped(Envelope<'a>)
A mutation’s envelope: its stamp orders the sample, and its record is the payload every later step reads (decode, a schema check, a rendering, a profile’s reader).
Framed(Envelope<'a>)
A frame (core 0.83 §7.7, form 5) on a plain stream’s key: its body
is read with its frame resource’s declaration
(crate::frame::Frame::parse), never decoded as a record of the
key’s type. Its stamp is its record 0’s.
Heartbeat(Envelope<'a>)
A heartbeat (core 0.81, form 6): its body is read with its covered
revision (crate::heartbeat::Heartbeat::parse), never decoded as
a record of the key’s type. Its stamp is its key’s. An owner
heartbeat (core 0.108) reads so too, and its body is
crate::heartbeat::OwnerHeartbeat::parse’s: the caller knows
which of the two its key carries.
Event(Event<'a>)
An event (core 0.101, form 4) on an events key whose last chunk
is an occurrence chunk: its time, then its record, which every later
step reads as a mutation’s; its stamp is its key’s.
Snapshot(Envelope<'a>)
A snapshot’s page (core 0.97, form 7) on a state or @state
key, a GET reply’s: its body is read by
crate::collection::Page::read, never decoded as a record of the
key’s type. Its stamp is the owner’s run and the snapshot’s asof.
Refused(Refusal)
An envelope refused: the sample is undecodable, with the refusal’s
token as its reason (Refusal::reason). It is counted and shown
as such, never decoded or sniffed as a payload with no envelope
(observer §7.3’s MUST NOT), and never ordered.
Trait Implementations§
impl<'a> Copy for Reading<'a>
impl<'a> Eq for Reading<'a>
impl<'a> StructuralPartialEq for Reading<'a>
Auto Trait Implementations§
impl<'a> Forget for Reading<'a>
impl<'a> Freeze for Reading<'a>
impl<'a> Move for Reading<'a>
impl<'a> RefUnwindSafe for Reading<'a>
impl<'a> Send for Reading<'a>
impl<'a> Sync for Reading<'a>
impl<'a> Unpin for Reading<'a>
impl<'a> UnsafeUnpin for Reading<'a>where
&'a [u8]: UnsafeUnpin,
impl<'a> UnwindSafe for Reading<'a>where
&'a [u8]: 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