Struct brush_core::CreateOptions
source · pub struct CreateOptions {
pub login: bool,
pub interactive: bool,
pub no_editing: bool,
pub no_profile: bool,
pub no_rc: bool,
pub posix: bool,
pub print_commands_and_arguments: bool,
pub read_commands_from_stdin: bool,
pub shell_name: Option<String>,
pub sh_mode: bool,
pub verbose: bool,
}Expand description
Options for creating a new shell.
Fields§
§login: boolWhether the shell is a login shell.
interactive: boolWhether the shell is interactive.
no_editing: boolWhether to skip using a readline-like interface for input.
no_profile: boolWhether to skip sourcing the system profile.
no_rc: boolWhether to skip sourcing the user’s rc file.
posix: boolWhether the shell is in POSIX compliance mode.
print_commands_and_arguments: boolWhether to print commands and arguments as they are read.
read_commands_from_stdin: boolWhether commands are being read from stdin.
shell_name: Option<String>The name of the shell.
sh_mode: boolWhether to run in maximal POSIX sh compatibility mode.
verbose: boolWhether to print verbose output.
Trait Implementations§
source§impl Debug for CreateOptions
impl Debug for CreateOptions
source§impl Default for CreateOptions
impl Default for CreateOptions
source§fn default() -> CreateOptions
fn default() -> CreateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnwindSafe for CreateOptions
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more