pub enum DecodeErrorKind {
Show 25 variants
UnexpectedTag {
expected: u8,
actual: u8,
},
TruncatedData,
InvalidLength,
IndefiniteLength,
IntegerOverflow,
ZeroLengthInteger,
InvalidOidEncoding,
UnknownVersion(i32),
UnknownPduType(u8),
ConstructedOctetString,
MissingPdu,
InvalidMsgFlags,
UnknownSecurityModel(i32),
MsgMaxSizeTooSmall {
value: i32,
minimum: i32,
},
InvalidNull,
UnexpectedEncryption,
ExpectedEncryption,
InvalidIpAddressLength {
length: usize,
},
LengthTooLong {
octets: usize,
},
LengthExceedsMax {
length: usize,
max: usize,
},
Integer64TooLong {
length: usize,
},
EmptyResponse,
TlvOverflow,
InsufficientData {
needed: usize,
available: usize,
},
InvalidOid,
}Expand description
BER decode error kinds.
Variants§
UnexpectedTag
Expected different tag.
TruncatedData
Data truncated unexpectedly.
InvalidLength
Invalid BER length encoding.
IndefiniteLength
Indefinite length not supported.
IntegerOverflow
Integer value overflow.
ZeroLengthInteger
Zero-length integer.
InvalidOidEncoding
Invalid OID encoding.
UnknownVersion(i32)
Unknown SNMP version.
UnknownPduType(u8)
Unknown PDU type.
ConstructedOctetString
Constructed OCTET STRING not supported.
MissingPdu
Missing required PDU.
InvalidMsgFlags
Invalid msgFlags (priv without auth).
UnknownSecurityModel(i32)
Unknown security model.
MsgMaxSizeTooSmall
msgMaxSize below RFC 3412 minimum (484 octets).
InvalidNull
NULL with non-zero length.
UnexpectedEncryption
Expected plaintext, got encrypted.
ExpectedEncryption
Expected encrypted, got plaintext.
InvalidIpAddressLength
Invalid IP address length.
LengthTooLong
Length field too long.
LengthExceedsMax
Length exceeds maximum.
Integer64TooLong
Integer64 too long.
EmptyResponse
Empty response.
TlvOverflow
TLV extends past end of data.
InsufficientData
Insufficient data for read.
InvalidOid
Invalid OID in notification varbinds.
Trait Implementations§
Source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
Source§fn clone(&self) -> DecodeErrorKind
fn clone(&self) -> DecodeErrorKind
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 DecodeErrorKind
impl Debug for DecodeErrorKind
Source§impl Display for DecodeErrorKind
impl Display for DecodeErrorKind
Source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
impl Copy for DecodeErrorKind
impl Eq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Freeze for DecodeErrorKind
impl RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl UnwindSafe for DecodeErrorKind
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