Enum snmp_parser::error::SnmpError
source · 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
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<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