pub enum ParseControl {
Continue,
Accept,
Reject,
}Expand description
Action to be taken as part of an #[ingot(control)] block
during packet parsing.
Variants§
Continue
Proceeds with parsing the remaining layers of a packet.
Accept
Accepts the packet if all remaining fields are Optional,
terminating parsing.
Reject
Explicitly rejects the packet.
Trait Implementations§
Source§impl Clone for ParseControl
impl Clone for ParseControl
Source§fn clone(&self) -> ParseControl
fn clone(&self) -> ParseControl
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 ParseControl
impl Debug for ParseControl
Source§impl Hash for ParseControl
impl Hash for ParseControl
Source§impl PartialEq for ParseControl
impl PartialEq for ParseControl
impl Copy for ParseControl
impl Eq for ParseControl
impl StructuralPartialEq for ParseControl
Auto Trait Implementations§
impl Freeze for ParseControl
impl RefUnwindSafe for ParseControl
impl Send for ParseControl
impl Sync for ParseControl
impl Unpin for ParseControl
impl UnwindSafe for ParseControl
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