pub struct CommandShellArgs {
pub on_socket: bool,
pub on_port: Option<u16>,
pub require_token: Option<String>,
pub parent_process_id: Option<String>,
}
Fields§
§on_socket: bool
Listen on a socket instead of stdin/stdout.
on_port: Option<u16>
Listen on a port instead of stdin/stdout.
require_token: Option<String>
Require the given token string to be given in the handshake.
parent_process_id: Option<String>
Optional parent process id. If provided, the server will be stopped when the process of the given pid no longer exists
Trait Implementations§
Source§impl Args for CommandShellArgs
impl Args for CommandShellArgs
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 CommandShellArgs
impl Clone for CommandShellArgs
Source§fn clone(&self) -> CommandShellArgs
fn clone(&self) -> CommandShellArgs
Returns a copy 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 CommandShellArgs
impl Debug for CommandShellArgs
Source§impl FromArgMatches for CommandShellArgs
impl FromArgMatches for CommandShellArgs
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 CommandShellArgs
impl RefUnwindSafe for CommandShellArgs
impl Send for CommandShellArgs
impl Sync for CommandShellArgs
impl Unpin for CommandShellArgs
impl UnwindSafe for CommandShellArgs
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