pub enum NotificationVarbindValidation {
Tolerant,
Strict,
}Expand description
Validation applied to the standard varbind prefix of received notifications.
This policy affects only SNMPv2c and SNMPv3 TrapV2 and Inform PDUs. Both
modes require at least two varbinds whose values are TimeTicks followed by
ObjectIdentifier.
Variants§
Tolerant
Accept any names for the two mandatory values.
This accommodates devices that send usable notification values under non-standard OID names.
Strict
Require the names and order specified by RFC 3416.
The first name must be sysUpTime.0 and the second must be
snmpTrapOID.0.
Trait Implementations§
Source§impl Clone for NotificationVarbindValidation
impl Clone for NotificationVarbindValidation
Source§fn clone(&self) -> NotificationVarbindValidation
fn clone(&self) -> NotificationVarbindValidation
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 moreimpl Copy for NotificationVarbindValidation
Source§impl Default for NotificationVarbindValidation
impl Default for NotificationVarbindValidation
Source§fn default() -> NotificationVarbindValidation
fn default() -> NotificationVarbindValidation
Returns the “default value” for a type. Read more
impl Eq for NotificationVarbindValidation
Source§impl Hash for NotificationVarbindValidation
impl Hash for NotificationVarbindValidation
impl StructuralPartialEq for NotificationVarbindValidation
Auto Trait Implementations§
impl Freeze for NotificationVarbindValidation
impl RefUnwindSafe for NotificationVarbindValidation
impl Send for NotificationVarbindValidation
impl Sync for NotificationVarbindValidation
impl Unpin for NotificationVarbindValidation
impl UnsafeUnpin for NotificationVarbindValidation
impl UnwindSafe for NotificationVarbindValidation
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.