pub struct TunnelServeArgs {
pub tunnel: ExistingTunnelArgs,
pub random_name: bool,
pub no_sleep: bool,
pub name: Option<String>,
pub parent_process_id: Option<String>,
pub accept_server_license_terms: bool,
pub install_extension: Vec<String>,
}
Fields§
§tunnel: ExistingTunnelArgs
Optional details to connect to an existing tunnel
random_name: bool
Randomly name machine for port forwarding service
no_sleep: bool
Prevents the machine going to sleep while this command runs.
name: Option<String>
Sets the machine name for port forwarding service
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
accept_server_license_terms: bool
If set, the user accepts the server license terms and the server will be started without a user prompt.
install_extension: Vec<String>
Requests that extensions be preloaded and installed on connecting servers.
Implementations§
Source§impl TunnelServeArgs
impl TunnelServeArgs
pub fn apply_to_server_args(&self, csa: &mut CodeServerArgs)
Trait Implementations§
Source§impl Args for TunnelServeArgs
impl Args for TunnelServeArgs
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 TunnelServeArgs
impl Clone for TunnelServeArgs
Source§fn clone(&self) -> TunnelServeArgs
fn clone(&self) -> TunnelServeArgs
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 TunnelServeArgs
impl Debug for TunnelServeArgs
Source§impl Default for TunnelServeArgs
impl Default for TunnelServeArgs
Source§fn default() -> TunnelServeArgs
fn default() -> TunnelServeArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for TunnelServeArgs
impl FromArgMatches for TunnelServeArgs
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 TunnelServeArgs
impl RefUnwindSafe for TunnelServeArgs
impl Send for TunnelServeArgs
impl Sync for TunnelServeArgs
impl Unpin for TunnelServeArgs
impl UnwindSafe for TunnelServeArgs
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