pub enum ParseOutput {
None,
Data(u8),
Command(Command),
}Expand description
What CommandKeyParser::feed produced for a single input byte.
Variants§
None
Parser is buffering — nothing to emit for this byte.
Data(u8)
Pass this byte through to the device as user data.
Command(Command)
A command was recognised; dispatch it.
Trait Implementations§
Source§impl Clone for ParseOutput
impl Clone for ParseOutput
Source§fn clone(&self) -> ParseOutput
fn clone(&self) -> ParseOutput
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 ParseOutput
impl Debug for ParseOutput
Source§impl PartialEq for ParseOutput
impl PartialEq for ParseOutput
impl Eq for ParseOutput
impl StructuralPartialEq for ParseOutput
Auto Trait Implementations§
impl Freeze for ParseOutput
impl RefUnwindSafe for ParseOutput
impl Send for ParseOutput
impl Sync for ParseOutput
impl Unpin for ParseOutput
impl UnsafeUnpin for ParseOutput
impl UnwindSafe for ParseOutput
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