#[non_exhaustive]pub struct SnmpMessage {
pub version: SnmpVersion,
pub community: String,
pub pdu_kind: SnmpPduKind,
pub request_id: i32,
pub varbind_oids: Vec<String>,
}Available on crate feature
snmp only.Expand description
One parsed SNMP message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: SnmpVersion§community: StringCommunity string (UTF-8 lossy) — cleartext
credential. Common defaults: "public" (RO),
"private" (RW).
pdu_kind: SnmpPduKind§request_id: i32Request / response correlation ID (v1/v2c). 0 if
the PDU doesn’t carry one (rare; mostly v1 Trap).
varbind_oids: Vec<String>Variable-binding OIDs as dotted-decimal strings,
e.g. "1.3.6.1.2.1.1.1.0". Empty for malformed
PDUs.
Trait Implementations§
Source§impl Clone for SnmpMessage
impl Clone for SnmpMessage
Source§fn clone(&self) -> SnmpMessage
fn clone(&self) -> SnmpMessage
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 SnmpMessage
impl Debug for SnmpMessage
Source§impl<'de> Deserialize<'de> for SnmpMessage
impl<'de> Deserialize<'de> for SnmpMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SnmpMessage
Source§impl PartialEq for SnmpMessage
impl PartialEq for SnmpMessage
Source§fn eq(&self, other: &SnmpMessage) -> bool
fn eq(&self, other: &SnmpMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SnmpMessage
impl Serialize for SnmpMessage
impl StructuralPartialEq for SnmpMessage
Auto Trait Implementations§
impl Freeze for SnmpMessage
impl RefUnwindSafe for SnmpMessage
impl Send for SnmpMessage
impl Sync for SnmpMessage
impl Unpin for SnmpMessage
impl UnsafeUnpin for SnmpMessage
impl UnwindSafe for SnmpMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.