pub enum PduBody {
Standard {
pdu_type: StandardPduType,
error_status: i32,
error_index: i32,
},
GetBulk {
non_repeaters: u32,
max_repetitions: u32,
},
}Expand description
The typed body of a standard or GETBULK PDU.
Variants§
Standard
Standard request/response body fields.
Fields
§
pdu_type: StandardPduTypePDU tag, excluding GETBULK and SNMPv1 Trap.
GetBulk
GETBULK-specific body fields.
Encoding rejects either field above the RFC 3416 Integer32 maximum.
Use GetBulkPdu::new for checked outbound construction.
Trait Implementations§
impl Eq for PduBody
impl StructuralPartialEq for PduBody
Auto Trait Implementations§
impl Freeze for PduBody
impl RefUnwindSafe for PduBody
impl Send for PduBody
impl Sync for PduBody
impl Unpin for PduBody
impl UnsafeUnpin for PduBody
impl UnwindSafe for PduBody
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.