pub enum SnmpError {
InvalidMessage,
InvalidVersion,
InvalidPduType,
InvalidPdu,
InvalidHeaderData,
InvalidScopedPduData,
InvalidSecurityModel,
NomError(ErrorKind),
BerError(Error),
}
Variants§
InvalidMessage
InvalidVersion
InvalidPduType
InvalidPdu
InvalidHeaderData
InvalidScopedPduData
InvalidSecurityModel
NomError(ErrorKind)
BerError(Error)
Trait Implementations§
Source§impl Error for SnmpError
impl Error for SnmpError
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<'a> FromBer<'a, SnmpError> for SnmpGenericMessage<'a>
impl<'a> FromBer<'a, SnmpError> for SnmpGenericMessage<'a>
Source§impl<'a> FromBer<'a, SnmpError> for SnmpMessage<'a>
impl<'a> FromBer<'a, SnmpError> for SnmpMessage<'a>
Source§impl<'a> FromBer<'a, SnmpError> for SnmpV3Message<'a>
impl<'a> FromBer<'a, SnmpError> for SnmpV3Message<'a>
Source§impl<I> ParseError<I> for SnmpError
impl<I> ParseError<I> for SnmpError
Source§fn from_error_kind(_input: I, kind: ErrorKind) -> Self
fn from_error_kind(_input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_input: I, kind: ErrorKind, _other: Self) -> Self
fn append(_input: I, kind: ErrorKind, _other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
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