pub struct Applied {
pub stamp: Stamp,
pub follows: Follows,
pub records: Vec<RecordRead>,
pub refused: Vec<Seq>,
}Expand description
A frame as a Reader read it.
Fields§
§stamp: StampThe envelope’s: record 0’s seq.
follows: Follows§records: Vec<RecordRead>§refused: Vec<Seq>Record 0’s seq of each frame of the run it holds that its layout
refused since the frame before this one (Reader::refuse), in
arrival order. Their records are among a gap’s lost: a refused
frame’s body is not read, so how many records it held is not known
to the reader, and only the next frame’s seq tells it.
Implementations§
Source§impl Applied
impl Applied
Sourcepub fn reading(
&self,
layout: &Layout,
epoch: Option<i64>,
) -> Result<Value, ReadRefusal>
pub fn reading( &self, layout: &Layout, epoch: Option<i64>, ) -> Result<Value, ReadRefusal>
The frame as spec/conformance/frame/apply.json spells a reading:
run, seq, follows (and lost for a gap), then each record’s
seq, time, after_ms and jitter_ms where they apply, at
({s, ms}) where its instant is known, and fields by name, each
{state} with its value (§7.6’s JSON reading), a within
field’s delta, and an unknown field’s why.
§Errors
Frame::read_json’s: a time field’s instant past an i64 of
milliseconds under epoch.
Trait Implementations§
impl Eq for Applied
impl StructuralPartialEq for Applied
Auto Trait Implementations§
impl Forget for Applied
impl Freeze for Applied
impl Move for Applied
impl RefUnwindSafe for Applied
impl Send for Appliedwhere
RawVecInner: Send,
impl Sync for Appliedwhere
RawVecInner: Sync,
impl Unpin for Applied
impl UnsafeUnpin for Appliedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RecordRead>: UnsafeUnpin,
PhantomData<Seq>: UnsafeUnpin,
impl UnwindSafe for Appliedwhere
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