pub struct NatOpts {
pub no_nat_traversal: bool,
pub exclude_nat_candidates: Vec<IpNet>,
pub no_nat_candidates: bool,
}Fields§
§no_nat_traversal: boolDon’t attempt NAT traversal. Note that this still will report candidates unless you also specify to exclude all NAT candidates.
exclude_nat_candidates: Vec<IpNet>Exclude one or more CIDRs from NAT candidate reporting. ex. –exclude-nat-candidates ‘0.0.0.0/0’ would report no candidates.
no_nat_candidates: boolDon’t report any candidates to coordinating server. Shorthand for –exclude-nat-candidates ‘0.0.0.0/0’.
Implementations§
Source§impl NatOpts
impl NatOpts
pub fn all_disabled() -> Self
Sourcepub fn is_excluded(&self, ip: IpAddr) -> bool
pub fn is_excluded(&self, ip: IpAddr) -> bool
Check if an IP is allowed to be reported as a candidate.
Trait Implementations§
Source§impl Args for NatOpts
impl Args for NatOpts
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 NatOpts
impl FromArgMatches for NatOpts
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 NatOpts
impl RefUnwindSafe for NatOpts
impl Send for NatOpts
impl Sync for NatOpts
impl Unpin for NatOpts
impl UnwindSafe for NatOpts
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