pub struct V3Args {
pub username: Option<String>,
pub level: Option<String>,
pub auth_protocol: Option<AuthProtocol>,
pub auth_password: Option<String>,
pub priv_protocol: Option<PrivProtocol>,
pub priv_password: Option<String>,
}Expand description
SNMPv3 security arguments.
Fields§
§username: Option<String>Security name/username (implies -v 3).
level: Option<String>Security level: noAuthNoPriv, authNoPriv, or authPriv.
auth_protocol: Option<AuthProtocol>Authentication protocol: MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512.
auth_password: Option<String>Authentication passphrase.
priv_protocol: Option<PrivProtocol>Privacy protocol: DES, AES, AES-128, AES-192, AES-256.
priv_password: Option<String>Privacy passphrase.
Implementations§
Trait Implementations§
Source§impl Args for V3Args
impl Args for V3Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for V3Args
impl CommandFactory for V3Args
Source§impl FromArgMatches for V3Args
impl FromArgMatches for V3Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for V3Args
impl Parser for V3Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for V3Args
impl RefUnwindSafe for V3Args
impl Send for V3Args
impl Sync for V3Args
impl Unpin for V3Args
impl UnsafeUnpin for V3Args
impl UnwindSafe for V3Args
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