pub enum Order {
Plain,
Serial,
}Expand description
How two seqs of one key, within one run, compare (core §4.3): by the key’s kind.
Variants§
Plain
A state’s or an event’s seqs, as integers. The owner keeps one seq per run for its state and events, which never wraps: within a run a key’s held seq can trail a newer one by more than 2^23, which serial order would read as older.
Serial
A stream key’s seqs, by serial arithmetic over 24 bits (RFC 1982): each stream key’s seq is its own, and wraps modulo 2^24.
Implementations§
Source§impl Order
impl Order
Sourcepub const fn of_kind(kind: KindToken) -> Order
pub const fn of_kind(kind: KindToken) -> Order
The order a kind’s seqs take: a stream’s (stream, @stream) is
serial, every other kind’s plain. An @stream sample carries no
envelope at core 0.73; a reader that meets one orders it as a
stream key’s.
Sourcepub fn of_key(key: &str) -> Order
pub fn of_key(key: &str) -> Order
The order of key’s seqs, by its kind token as the grammar reads it
(wire::enveloped_kind); plain for a key whose samples carry no
envelope, whose marks are never in-band.
Trait Implementations§
impl Copy for Order
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Forget for Order
impl Freeze for Order
impl Move for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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