pub enum SnmpError {
Show 13 variants
AsnParse,
AsnInvalidLen,
AsnWrongType,
AsnUnsupportedType,
AsnEof,
AsnIntOverflow,
UnsupportedVersion,
RequestIdMismatch,
CommunityMismatch,
ValueOutOfRange,
Send,
Receive,
Mib(String),
}Expand description
SNMP error type.
Variants§
AsnParse
ASN.1 parsing error.
AsnInvalidLen
ASN.1 invalid length.
AsnWrongType
ASN.1 wrong type.
AsnUnsupportedType
ASN.1 unsupported type.
AsnEof
ASN.1 unexpected end of file.
AsnIntOverflow
ASN.1 integer overflow.
UnsupportedVersion
Invalid SNMP version.
RequestIdMismatch
Invalid request ID.
CommunityMismatch
Invalid SNMP community string.
ValueOutOfRange
Value out of range.
Send
Socket send error.
Receive
Socket receive error.
Mib(String)
MIB errors
Trait Implementations§
Source§impl Error for SnmpError
impl Error for SnmpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TryFromIntError> for SnmpError
impl From<TryFromIntError> for SnmpError
Source§fn from(_: TryFromIntError) -> SnmpError
fn from(_: TryFromIntError) -> SnmpError
Converts to this type from the input type.
impl StructuralPartialEq for SnmpError
Auto Trait Implementations§
impl Freeze for SnmpError
impl RefUnwindSafe for SnmpError
impl Send for SnmpError
impl Sync for SnmpError
impl Unpin for SnmpError
impl UnwindSafe for SnmpError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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