pub enum Form {
Mutation,
Delete,
Value,
Error,
Event,
Frame,
Heartbeat,
Snapshot,
}Expand description
A form: CH’s three high bits. This version defines all eight: a mutation, a delete, a value, an error, an event (core 0.101), a frame, a heartbeat and a snapshot.
Variants§
Mutation
Code 0: a put’s run and seq, then its record.
Delete
Code 1: a delete’s run and seq, as its attachment, and no record.
Value
Code 2: a call’s request, as its query’s payload, with no stamp; and a reply’s run and seq, then its record (core 0.92).
Error
Code 3: a reply error’s run and seq, then §5.2’s error in bytes
(core 0.92, crate::envelope::ErrorForm).
Event
Code 4: an event’s occurrence, a put’s payload on an events key,
its time then its record, its stamp its key’s (core 0.101, #980’s
C2a, Event).
Frame
Code 5: a stream’s records under one header, a put’s payload on a
plain stream’s key (core 0.83 §7.7, crate::frame).
Heartbeat
Code 6: an owner’s confirmation of the state it holds for one
interface, a put’s payload (core 0.81, crate::heartbeat), or,
on an owner heartbeat’s key, for several (core 0.108,
crate::heartbeat::OwnerHeartbeat).
Snapshot
Code 7: a collection’s state, a GET reply’s payload, in pages
(core 0.97, crate::collection).
Implementations§
Trait Implementations§
impl Copy for Form
impl Eq for Form
Source§impl Ord for Form
impl Ord for Form
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Form
impl PartialOrd for Form
impl StructuralPartialEq for Form
Auto Trait Implementations§
impl Forget for Form
impl Freeze for Form
impl Move for Form
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnsafeUnpin for Form
impl UnwindSafe for Form
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