pub enum OutboundPdu {
Request(RequestPdu),
GetBulk(GetBulkPdu),
Response(ResponsePdu),
Notification(NotificationPdu),
}Expand description
Any validated outbound standard-layout PDU.
Variants§
Request(RequestPdu)
GET, GETNEXT, or SET request.
GetBulk(GetBulkPdu)
GETBULK request.
Response(ResponsePdu)
Response or Report PDU.
Notification(NotificationPdu)
InformRequest or SNMPv2-Trap PDU.
Implementations§
Source§impl OutboundPdu
impl OutboundPdu
Sourcepub fn try_from_raw(version: Version, pdu: Pdu) -> Result<Self>
pub fn try_from_raw(version: Version, pdu: Pdu) -> Result<Self>
Validate and classify a decoded/raw PDU for outbound use.
Trait Implementations§
Source§impl Clone for OutboundPdu
impl Clone for OutboundPdu
Source§fn clone(&self) -> OutboundPdu
fn clone(&self) -> OutboundPdu
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundPdu
impl Debug for OutboundPdu
impl Eq for OutboundPdu
Source§impl From<OutboundPdu> for Pdu
impl From<OutboundPdu> for Pdu
Source§fn from(value: OutboundPdu) -> Self
fn from(value: OutboundPdu) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutboundPdu
impl PartialEq for OutboundPdu
impl StructuralPartialEq for OutboundPdu
Auto Trait Implementations§
impl Freeze for OutboundPdu
impl RefUnwindSafe for OutboundPdu
impl Send for OutboundPdu
impl Sync for OutboundPdu
impl Unpin for OutboundPdu
impl UnsafeUnpin for OutboundPdu
impl UnwindSafe for OutboundPdu
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.