#[repr(u16)]pub enum ErrorFlags {
UnknownExchange = 1,
UnknownPayload = 2,
InvalidPayload = 4,
UnimplementedPayload = 8,
NonZeroMessageIdInInit = 16,
NonZeroResponderSpiInInit = 32,
ZeroResponderSpiInResponse = 64,
NonZeroReserved = 128,
InvalidLength = 256,
InvalidFlags = 512,
}Expand description
Classes of errors that can be returned by this parser.
Variants§
UnknownExchange = 1
Unknown Exchange number
UnknownPayload = 2
Unknown Payload number
InvalidPayload = 4
Found a payload in an invalid location
UnimplementedPayload = 8
Known payload found which we have no parser for
NonZeroMessageIdInInit = 16
Message ID was nonzero in an initiation message
NonZeroResponderSpiInInit = 32
Responder SPI was nonzero in an initiation message
ZeroResponderSpiInResponse = 64
Responder SPI was not set in a response message
NonZeroReserved = 128
Non-Zero reserved field found
InvalidLength = 256
Invalid length in a payload
Typically indicative of a length which is too short to accomodate the generic payload header
InvalidFlags = 512
Header flags were invalid.
Either a nonexistant flag bit was set or both IKEv1 and IKEv2 flags were set at the same time.
Trait Implementations§
Source§impl Binary for ErrorFlags
impl Binary for ErrorFlags
Source§impl BitAnd for ErrorFlags
impl BitAnd for ErrorFlags
Source§impl BitOr for ErrorFlags
impl BitOr for ErrorFlags
Source§impl BitXor for ErrorFlags
impl BitXor for ErrorFlags
Source§impl Clone for ErrorFlags
impl Clone for ErrorFlags
Source§fn clone(&self) -> ErrorFlags
fn clone(&self) -> ErrorFlags
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 ErrorFlags
impl Debug for ErrorFlags
Source§impl Display for ErrorFlags
impl Display for ErrorFlags
Source§impl Flag for ErrorFlags
impl Flag for ErrorFlags
Source§impl FromStr for ErrorFlags
impl FromStr for ErrorFlags
Source§impl Not for ErrorFlags
impl Not for ErrorFlags
Source§impl PartialEq<Flags<ErrorFlags>> for ErrorFlags
impl PartialEq<Flags<ErrorFlags>> for ErrorFlags
Source§impl PartialEq for ErrorFlags
impl PartialEq for ErrorFlags
impl Copy for ErrorFlags
impl Eq for ErrorFlags
impl StructuralPartialEq for ErrorFlags
Auto Trait Implementations§
impl Freeze for ErrorFlags
impl RefUnwindSafe for ErrorFlags
impl Send for ErrorFlags
impl Sync for ErrorFlags
impl Unpin for ErrorFlags
impl UnwindSafe for ErrorFlags
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