pub enum Auth {
Community {
version: CommunityVersion,
community: String,
},
Usm(UsmAuth),
}Expand description
Authentication configuration for SNMP clients.
Variants§
Community
Community string authentication (SNMPv1 or v2c).
Usm(UsmAuth)
User-based Security Model (SNMPv3).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Auth
impl<'de> Deserialize<'de> for Auth
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
Source§impl From<UsmBuilder> for Auth
impl From<UsmBuilder> for Auth
Source§fn from(b: UsmBuilder) -> Auth
fn from(b: UsmBuilder) -> Auth
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnwindSafe for Auth
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