pub enum SecurityModel {
Any = 0,
V1 = 1,
V2c = 2,
Usm = 3,
}Expand description
Security model identifiers (RFC 3411).
Used to specify which SNMP version/security mechanism a mapping applies to.
§Example
use async_snmp::agent::{SecurityModel, VacmBuilder};
let vacm = VacmBuilder::new()
// Map communities to groups by security model
.group("public", SecurityModel::V2c, "readonly")
.group("admin", SecurityModel::Usm, "admin_group")
// Any model can match as a fallback
.group("universal", SecurityModel::Any, "universal_group")
.build();Variants§
Any = 0
Wildcard for VACM matching (matches any model).
Use this when the same mapping should apply regardless of SNMP version.
V1 = 1
SNMPv1.
V2c = 2
SNMPv2c.
Usm = 3
SNMPv3 User-based Security Model.
Trait Implementations§
Source§impl Clone for SecurityModel
impl Clone for SecurityModel
Source§fn clone(&self) -> SecurityModel
fn clone(&self) -> SecurityModel
Returns a duplicate of the value. Read more
1.0.0 · 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 SecurityModel
impl Debug for SecurityModel
Source§impl Hash for SecurityModel
impl Hash for SecurityModel
Source§impl PartialEq for SecurityModel
impl PartialEq for SecurityModel
impl Copy for SecurityModel
impl Eq for SecurityModel
impl StructuralPartialEq for SecurityModel
Auto Trait Implementations§
impl Freeze for SecurityModel
impl RefUnwindSafe for SecurityModel
impl Send for SecurityModel
impl Sync for SecurityModel
impl Unpin for SecurityModel
impl UnwindSafe for SecurityModel
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