pub struct HostsOpts {
pub hosts_path: PathBuf,
pub no_write_hosts: bool,
pub host_suffix: Option<String>,
}Fields§
§hosts_path: PathBufThe path to write hosts to
no_write_hosts: boolDon’t write to any hosts files
host_suffix: Option<String>Use a different suffix for hosts, than ‘INTERFACE.wg’ , ex. –host-suffix ‘evilnet’ names peers: PEER.evilnet, and –host-suffix ‘’ gives peers no suffix, just: PEER
Trait Implementations§
Source§impl Args for HostsOpts
impl Args for HostsOpts
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 FromArgMatches for HostsOpts
impl FromArgMatches for HostsOpts
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.Auto Trait Implementations§
impl Freeze for HostsOpts
impl RefUnwindSafe for HostsOpts
impl Send for HostsOpts
impl Sync for HostsOpts
impl Unpin for HostsOpts
impl UnsafeUnpin for HostsOpts
impl UnwindSafe for HostsOpts
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