pub struct NetworkOpts {
pub no_routing: bool,
pub backend: Backend,
pub mtu: Option<u32>,
}Fields§
§no_routing: boolWhether the routing should be done by innernet or is done by an external tool like e.g. babeld.
backend: BackendSpecify a WireGuard backend to use. If not set, innernet will auto-select based on availability.
mtu: Option<u32>Specify the desired MTU for your interface (default: 1280).
Trait Implementations§
Source§impl Args for NetworkOpts
impl Args for NetworkOpts
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 Clone for NetworkOpts
impl Clone for NetworkOpts
Source§fn clone(&self) -> NetworkOpts
fn clone(&self) -> NetworkOpts
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 NetworkOpts
impl Debug for NetworkOpts
Source§impl FromArgMatches for NetworkOpts
impl FromArgMatches for NetworkOpts
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.impl Copy for NetworkOpts
Auto Trait Implementations§
impl Freeze for NetworkOpts
impl RefUnwindSafe for NetworkOpts
impl Send for NetworkOpts
impl Sync for NetworkOpts
impl Unpin for NetworkOpts
impl UnwindSafe for NetworkOpts
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