pub enum CursorLevel {
Known(Acknowledgement),
Application(u64),
}Expand description
A level a cursor can name: one weida defines, or one the application does.
The level space is open
(decisions/0023
§4.4): values below CursorLevel::APPLICATION_FLOOR are weida’s own
ladder, Acknowledgement, and everything at or above it is an
application stage weida carries and orders but never interprets. An
undefined value below the floor is a protocol violation rather than an
application level, because the reserved range is where a later version of
this specification will put its own stages.
Variants§
Known(Acknowledgement)
A level this version of the protocol defines.
Application(u64)
An application stage, at or above the floor.
Implementations§
Source§impl CursorLevel
impl CursorLevel
Sourcepub const APPLICATION_FLOOR: u64 = 16
pub const APPLICATION_FLOOR: u64 = 16
First wire value an application may name.
Sourcepub fn from_wire(value: u64) -> Option<CursorLevel>
pub fn from_wire(value: u64) -> Option<CursorLevel>
Interprets a wire value, or None if it is an undefined value in the
reserved range.
Sourcepub fn application(value: u64) -> Option<CursorLevel>
pub fn application(value: u64) -> Option<CursorLevel>
An application stage, or None below the floor: the reserved range is
not an application’s to name.