pub struct LaunchArgs {
pub proxy: Option<String>,
pub channel: Option<String>,
pub discord_dir: Option<PathBuf>,
pub listen_port: Option<u16>,
pub no_bridge: bool,
pub dry_run: bool,
}Fields§
§proxy: Option<String>Upstream proxy URL, for example http://127.0.0.1:1080 or socks5://user:pass@127.0.0.1:1080.
channel: Option<String>Discord channel: stable, canary, ptb, or development.
discord_dir: Option<PathBuf>Discord root directory that contains Update.exe and app-* folders.
listen_port: Option<u16>Local bridge listen port. Defaults to a random available loopback port.
no_bridge: boolDo not start the local bridge even when SOCKS or authentication would normally require it.
dry_run: boolPrint the launch plan without starting Discord.
Trait Implementations§
Source§impl Args for LaunchArgs
impl Args for LaunchArgs
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 Debug for LaunchArgs
impl Debug for LaunchArgs
Source§impl FromArgMatches for LaunchArgs
impl FromArgMatches for LaunchArgs
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 LaunchArgs
impl RefUnwindSafe for LaunchArgs
impl Send for LaunchArgs
impl Sync for LaunchArgs
impl Unpin for LaunchArgs
impl UnsafeUnpin for LaunchArgs
impl UnwindSafe for LaunchArgs
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