pub enum ParserState {
Initial,
InHeader {
header: PartialMessageHeader,
depth: usize,
},
InRelease {
release: PartialRelease,
depth: usize,
},
InResource {
resource: PartialResource,
depth: usize,
},
InParty {
party: PartialParty,
depth: usize,
},
InDeal {
deal: PartialDeal,
depth: usize,
},
Skipping {
start_depth: usize,
current_depth: usize,
},
Complete,
Error(String),
}Expand description
Parser state for streaming processing
Variants§
Initial
Initial state - waiting for root element
InHeader
Parsing message header
InRelease
Parsing a release
InResource
Parsing a resource
InParty
Parsing a party
InDeal
Parsing a deal
Skipping
Skipping unknown element
Complete
Parsing complete
Error(String)
Error state
Trait Implementations§
Source§impl Clone for ParserState
impl Clone for ParserState
Source§fn clone(&self) -> ParserState
fn clone(&self) -> ParserState
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 ParserState
impl Debug for ParserState
Source§impl Default for ParserState
impl Default for ParserState
Source§fn default() -> ParserState
fn default() -> ParserState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParserState
impl RefUnwindSafe for ParserState
impl Send for ParserState
impl Sync for ParserState
impl Unpin for ParserState
impl UnwindSafe for ParserState
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