Skip to main content

DecoderMessageStorage

Struct DecoderMessageStorage 

Source
pub struct DecoderMessageStorage<'a, P> {
Show 15 fields pub fields: ManagedSlice<'a, FieldInfo>, pub pred_indices: ManagedSlice<'a, usize>, pub field_to_pred: ManagedSlice<'a, Option<usize>>, pub predictors: ManagedSlice<'a, Option<P>>, pub states: ManagedSlice<'a, FieldState>, pub opaque_words: ManagedSlice<'a, u64>, pub opaque_bytes: ManagedSlice<'a, u8>, pub staging_words: ManagedSlice<'a, u64>, pub staging_bytes: ManagedSlice<'a, u8>, pub expected_seq: u8, pub last_wire_ticks: Option<u16>, pub last_t: Option<u64>, pub stale_run: u8, pub last_stale_seq: u8, pub message_id: u8,
}
Expand description

Borrowed-or-owned storage for one message decoder.

Fields§

§fields: ManagedSlice<'a, FieldInfo>

Per-field wire descriptors.

§pred_indices: ManagedSlice<'a, usize>

Schema field indices for predictor fields, in predictor order.

§field_to_pred: ManagedSlice<'a, Option<usize>>

Predictor slot for each schema field.

§predictors: ManagedSlice<'a, Option<P>>

Predictor state slots.

§states: ManagedSlice<'a, FieldState>

Trust state per predictor slot.

§opaque_words: ManagedSlice<'a, u64>

Persistent canonical opaque state words.

§opaque_bytes: ManagedSlice<'a, u8>

Persistent canonical opaque state bytes.

§staging_words: ManagedSlice<'a, u64>

Staging words for every delivered list field.

§staging_bytes: ManagedSlice<'a, u8>

Staging bytes for every delivered string field.

§expected_seq: u8

Next expected sequence number.

§last_wire_ticks: Option<u16>

Previous wire tick value.

§last_t: Option<u64>

Previous unwrapped tick.

§stale_run: u8

Consecutive late-frame counter.

§last_stale_seq: u8

Sequence number of the previous late frame.

§message_id: u8

Message ID used to dispatch this frame.

Implementations§

Source§

impl<'a, P> DecoderMessageStorage<'a, P>

Source

pub fn borrowed( fields: &'a mut [FieldInfo], pred_indices: &'a mut [usize], field_to_pred: &'a mut [Option<usize>], predictors: &'a mut [Option<P>], states: &'a mut [FieldState], opaque_words: &'a mut [u64], opaque_bytes: &'a mut [u8], staging_words: &'a mut [u64], staging_bytes: &'a mut [u8], ) -> Self

Build storage from caller-provided slices.

Auto Trait Implementations§

§

impl<'a, P> !UnwindSafe for DecoderMessageStorage<'a, P>

§

impl<'a, P> Freeze for DecoderMessageStorage<'a, P>

§

impl<'a, P> RefUnwindSafe for DecoderMessageStorage<'a, P>
where P: RefUnwindSafe,

§

impl<'a, P> Send for DecoderMessageStorage<'a, P>
where P: Send,

§

impl<'a, P> Sync for DecoderMessageStorage<'a, P>
where P: Sync,

§

impl<'a, P> Unpin for DecoderMessageStorage<'a, P>
where P: Unpin,

§

impl<'a, P> UnsafeUnpin for DecoderMessageStorage<'a, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.