pub struct CmdOpt {
pub role: Role,
pub config: PathBuf,
pub cache_dns: bool,
pub verbosity: ArgVerbosity,
pub daemonize: bool,
pub qrcode: bool,
pub c_api: bool,
}Expand description
Proxy tunnel over tls
Fields§
§role: RoleRole of server or client
config: PathBufConfig file path
cache_dns: boolCache DNS Query result
verbosity: ArgVerbosityVerbosity level
daemonize: boolDaemonize for unix family.
qrcode: boolGenerate QR code for client.
c_api: boolUse C API for client.
Implementations§
Trait Implementations§
source§impl CommandFactory for CmdOpt
impl CommandFactory for CmdOpt
source§impl FromArgMatches for CmdOpt
impl FromArgMatches for CmdOpt
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 CmdOpt
impl Parser for CmdOpt
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)
Update from iterator, exit on error.
source§impl PartialEq for CmdOpt
impl PartialEq for CmdOpt
impl Eq for CmdOpt
impl StructuralPartialEq for CmdOpt
Auto Trait Implementations§
impl Freeze for CmdOpt
impl RefUnwindSafe for CmdOpt
impl Send for CmdOpt
impl Sync for CmdOpt
impl Unpin for CmdOpt
impl UnwindSafe for CmdOpt
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