pub struct InitializeOpts {
pub network_name: Option<Interface>,
pub network_cidr: Option<IpNet>,
pub external_endpoint: Option<Endpoint>,
pub auto_external_endpoint: bool,
pub listen_port: Option<u16>,
}Fields§
§network_name: Option<Interface>The network name (ex: evilcorp)
network_cidr: Option<IpNet>The network CIDR (ex: 10.42.0.0/16)
external_endpoint: Option<Endpoint>This server’s external endpoint (ex: 100.100.100.100:51820)
auto_external_endpoint: boolAuto-resolve external endpoint
listen_port: Option<u16>Port to listen on (for the WireGuard interface)
Trait Implementations§
Source§impl Args for InitializeOpts
impl Args for InitializeOpts
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 InitializeOpts
impl Clone for InitializeOpts
Source§fn clone(&self) -> InitializeOpts
fn clone(&self) -> InitializeOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for InitializeOpts
impl CommandFactory for InitializeOpts
Source§impl Debug for InitializeOpts
impl Debug for InitializeOpts
Source§impl Default for InitializeOpts
impl Default for InitializeOpts
Source§fn default() -> InitializeOpts
fn default() -> InitializeOpts
Returns the “default value” for a type. Read more
impl Eq for InitializeOpts
Source§impl FromArgMatches for InitializeOpts
impl FromArgMatches for InitializeOpts
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 InitializeOpts
impl Parser for InitializeOpts
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)
Source§impl PartialEq for InitializeOpts
impl PartialEq for InitializeOpts
Source§fn eq(&self, other: &InitializeOpts) -> bool
fn eq(&self, other: &InitializeOpts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InitializeOpts
Auto Trait Implementations§
impl Freeze for InitializeOpts
impl RefUnwindSafe for InitializeOpts
impl Send for InitializeOpts
impl Sync for InitializeOpts
impl Unpin for InitializeOpts
impl UnsafeUnpin for InitializeOpts
impl UnwindSafe for InitializeOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.