Enum csnmp::client::SnmpClientError
source · pub enum SnmpClientError {
Show 15 variants
CreatingSocket {
io_error: Error,
},
Connecting {
io_error: Error,
},
EncodingOutgoing {
message_error: SnmpMessageError,
},
Sending {
io_error: Error,
},
ShortSend {
expected: usize,
sent: usize,
},
Receiving {
io_error: Error,
},
DecodingIncoming {
message_error: SnmpMessageError,
},
InvalidPdu {
pdu: Snmp2cPdu,
},
BindingCount {
expected: usize,
obtained: Vec<VariableBinding>,
},
UnexpectedValue {
expected: ObjectIdentifier,
obtained: Vec<VariableBinding>,
},
PrecedingValue {
previous_oid: ObjectIdentifier,
obtained: Vec<VariableBinding>,
},
NonIncreasingValue {
previous_oid: ObjectIdentifier,
next_oid: ObjectIdentifier,
obtained: Vec<VariableBinding>,
},
DuplicateValue {
oid: ObjectIdentifier,
obtained: Vec<VariableBinding>,
},
FailedBinding {
binding: VariableBinding,
},
TimedOut,
}
Expand description
An error that can occur during SNMP communication.
Variants§
CreatingSocket
An error occurred while creating the socket.
Connecting
An error occurred while connecting the socket to a specific server.
EncodingOutgoing
Fields
message_error: SnmpMessageError
An error occurred while encoding the outgoing message.
Sending
An error occurred while sending a message.
ShortSend
The message was truncated while being sent.
Receiving
An error occurred while receiving a message.
DecodingIncoming
Fields
message_error: SnmpMessageError
An error occurred while decoding the incoming message.
InvalidPdu
The response contains an invalid Protocol Data Unit.
BindingCount
An unexpected number of variable bindings has been received.
UnexpectedValue
An unexpected value has been obtained in a Get
operation.
PrecedingValue
A value preceding the provided previous OID has been obtained in a GetNext
or GetBulk
operation.
NonIncreasingValue
Multiple values have been obtained and they are not in ascending order by OID.
DuplicateValue
More than one value has been obtained for the same OID in a GetBulk
operation.
FailedBinding
Fields
binding: VariableBinding
A variable binding value signifying an error has been obtained.
TimedOut
The operation took longer than allowed by the timeout value.