pub enum ParserControl {
SessionOpen(ParserSessionOpen),
Ready(ParserReady),
Request(ParserRequest),
Progress(ParserProgress),
Completion(ParserCompletion),
Failure(ParserFailure),
}Expand description
Closed strict-JSON control messages in the parser-worker protocol.
Variants§
SessionOpen(ParserSessionOpen)
Supervisor session opening before containment-ready acknowledgement.
Ready(ParserReady)
Worker containment-ready state.
Request(ParserRequest)
Supervisor parse request.
Progress(ParserProgress)
Worker progress observation.
Completion(ParserCompletion)
Worker successful completion.
Failure(ParserFailure)
Worker closed failure.
Implementations§
Source§impl ParserControl
impl ParserControl
Sourcepub const fn frame_kind(&self) -> ParserFrameKind
pub const fn frame_kind(&self) -> ParserFrameKind
Return the closed frame kind for this control message.
Trait Implementations§
Source§impl Clone for ParserControl
impl Clone for ParserControl
Source§fn clone(&self) -> ParserControl
fn clone(&self) -> ParserControl
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 ParserControl
impl Debug for ParserControl
Source§impl PartialEq for ParserControl
impl PartialEq for ParserControl
impl Eq for ParserControl
impl StructuralPartialEq for ParserControl
Auto Trait Implementations§
impl Freeze for ParserControl
impl RefUnwindSafe for ParserControl
impl Send for ParserControl
impl Sync for ParserControl
impl Unpin for ParserControl
impl UnwindSafe for ParserControl
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.