pub enum Error {
Show 17 variants
AsnParse,
AsnInvalidLen,
AsnWrongType,
AsnUnsupportedType,
AsnEof,
AsnIntOverflow,
UnsupportedVersion,
RequestIdMismatch,
CommunityMismatch,
ValueOutOfRange,
BufferOverflow,
AuthFailure(AuthErrorKind),
Crypto(String),
AuthUpdated,
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.
BufferOverflow
Buffer overflow.
AuthFailure(AuthErrorKind)
Authentication failure
Crypto(String)
OpenSSL errors
AuthUpdated
Security context has been updated, repeat the request
Send
Socket send error.
Receive
Socket receive error.
Mib(String)
MIB errors
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ErrorStack> for Error
impl From<ErrorStack> for Error
Source§fn from(err: ErrorStack) -> Error
fn from(err: ErrorStack) -> Error
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(_: TryFromIntError) -> Error
fn from(_: TryFromIntError) -> Error
Converts to this type from the input type.
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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