Struct alacritty::cli::TerminalOptions
source · pub struct TerminalOptions {
pub working_directory: Option<PathBuf>,
pub hold: bool,
command: Vec<String>,
}
Expand description
Terminal specific cli options which can be passed to new windows via IPC.
Fields§
§working_directory: Option<PathBuf>
Start the shell in the specified working directory.
hold: bool
Remain open after child process exit.
command: Vec<String>
Command and args to execute (must be last argument).
Implementations§
source§impl TerminalOptions
impl TerminalOptions
sourcepub fn override_pty_config(&self, pty_config: &mut PtyConfig)
pub fn override_pty_config(&self, pty_config: &mut PtyConfig)
Override the PtyConfig
’s fields with the TerminalOptions
.
Trait Implementations§
source§impl Args for TerminalOptions
impl Args for TerminalOptions
source§impl Clone for TerminalOptions
impl Clone for TerminalOptions
source§fn clone(&self) -> TerminalOptions
fn clone(&self) -> TerminalOptions
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 TerminalOptions
impl Debug for TerminalOptions
source§impl Default for TerminalOptions
impl Default for TerminalOptions
source§fn default() -> TerminalOptions
fn default() -> TerminalOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TerminalOptions
impl<'de> Deserialize<'de> for TerminalOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<TerminalOptions> for PtyConfig
impl From<TerminalOptions> for PtyConfig
source§fn from(options: TerminalOptions) -> Self
fn from(options: TerminalOptions) -> Self
Converts to this type from the input type.
source§impl FromArgMatches for TerminalOptions
impl FromArgMatches for TerminalOptions
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 PartialEq<TerminalOptions> for TerminalOptions
impl PartialEq<TerminalOptions> for TerminalOptions
source§fn eq(&self, other: &TerminalOptions) -> bool
fn eq(&self, other: &TerminalOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TerminalOptions
impl Serialize for TerminalOptions
impl Eq for TerminalOptions
impl StructuralEq for TerminalOptions
impl StructuralPartialEq for TerminalOptions
Auto Trait Implementations§
impl RefUnwindSafe for TerminalOptions
impl Send for TerminalOptions
impl Sync for TerminalOptions
impl Unpin for TerminalOptions
impl UnwindSafe for TerminalOptions
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.