#[repr(u8)]pub enum ParserFrameKind {
Request = 1,
RawSource = 2,
Progress = 3,
Completion = 4,
Failure = 5,
Ready = 6,
SessionOpen = 7,
}Expand description
Closed frame kinds used on the resident worker’s standard streams.
Variants§
Request = 1
Strict JSON parse request from supervisor to worker.
RawSource = 2
Exact unencoded source bytes from supervisor to worker.
Progress = 3
Strict JSON progress observation from worker to supervisor.
Completion = 4
Strict JSON successful completion from worker to supervisor.
Failure = 5
Strict JSON closed failure from worker to supervisor.
Ready = 6
Strict JSON containment-ready state from worker to supervisor.
SessionOpen = 7
Strict JSON session opening from supervisor to a contained worker.
Implementations§
Source§impl ParserFrameKind
impl ParserFrameKind
Sourcepub const fn maximum_payload_bytes(self) -> u32
pub const fn maximum_payload_bytes(self) -> u32
Return the maximum payload bytes for this frame kind.
Sourcepub const fn is_control(self) -> bool
pub const fn is_control(self) -> bool
Return whether this kind carries strict JSON control data.
Trait Implementations§
Source§impl Clone for ParserFrameKind
impl Clone for ParserFrameKind
Source§fn clone(&self) -> ParserFrameKind
fn clone(&self) -> ParserFrameKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserFrameKind
impl Debug for ParserFrameKind
Source§impl PartialEq for ParserFrameKind
impl PartialEq for ParserFrameKind
Source§impl TryFrom<u8> for ParserFrameKind
impl TryFrom<u8> for ParserFrameKind
impl Copy for ParserFrameKind
impl Eq for ParserFrameKind
impl StructuralPartialEq for ParserFrameKind
Auto Trait Implementations§
impl Freeze for ParserFrameKind
impl RefUnwindSafe for ParserFrameKind
impl Send for ParserFrameKind
impl Sync for ParserFrameKind
impl Unpin for ParserFrameKind
impl UnwindSafe for ParserFrameKind
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.