pub struct ShellBuilder<SE: ShellExtensions = DefaultShellExtensions, S: State = Empty> { /* private fields */ }Expand description
Builder for Shell
Implementations§
Source§impl<SE: ShellExtensions, S: IsComplete> ShellBuilder<SE, S>
impl<SE: ShellExtensions, S: IsComplete> ShellBuilder<SE, S>
Source§impl<SE: ShellExtensions, S: State> ShellBuilder<SE, S>
impl<SE: ShellExtensions, S: State> ShellBuilder<SE, S>
Sourcepub fn disable_option(self, option: impl Into<String>) -> Self
pub fn disable_option(self, option: impl Into<String>) -> Self
Add a disabled option
Sourcepub fn enable_option(self, option: impl Into<String>) -> Self
pub fn enable_option(self, option: impl Into<String>) -> Self
Add an enabled option
Sourcepub fn disable_options(
self,
options: impl IntoIterator<Item: Into<String>>,
) -> Self
pub fn disable_options( self, options: impl IntoIterator<Item: Into<String>>, ) -> Self
Add many disabled options
Sourcepub fn enable_options(
self,
options: impl IntoIterator<Item: Into<String>>,
) -> Self
pub fn enable_options( self, options: impl IntoIterator<Item: Into<String>>, ) -> Self
Add many enabled options
Sourcepub fn disable_shopt_option(self, option: impl Into<String>) -> Self
pub fn disable_shopt_option(self, option: impl Into<String>) -> Self
Add a disabled shopt option
Sourcepub fn enable_shopt_option(self, option: impl Into<String>) -> Self
pub fn enable_shopt_option(self, option: impl Into<String>) -> Self
Add an enabled shopt option
Sourcepub fn disable_shopt_options(
self,
options: impl IntoIterator<Item: Into<String>>,
) -> Self
pub fn disable_shopt_options( self, options: impl IntoIterator<Item: Into<String>>, ) -> Self
Add many disabled shopt options
Sourcepub fn enable_shopt_options(
self,
options: impl IntoIterator<Item: Into<String>>,
) -> Self
pub fn enable_shopt_options( self, options: impl IntoIterator<Item: Into<String>>, ) -> Self
Add many enabled shopt options
Sourcepub fn builtin(self, name: impl Into<String>, reg: Registration<SE>) -> Self
pub fn builtin(self, name: impl Into<String>, reg: Registration<SE>) -> Self
Add a single builtin registration
Sourcepub fn builtins(
self,
builtins: impl IntoIterator<Item = (String, Registration<SE>)>,
) -> Self
pub fn builtins( self, builtins: impl IntoIterator<Item = (String, Registration<SE>)>, ) -> Self
Add many builtin registrations
Sourcepub fn var(self, name: impl Into<String>, variable: ShellVariable) -> Self
pub fn var(self, name: impl Into<String>, variable: ShellVariable) -> Self
Adds a single variable to be initialized in the shell.
Source§impl<SE: ShellExtensions, S: State> ShellBuilder<SE, S>
impl<SE: ShellExtensions, S: State> ShellBuilder<SE, S>
Sourcepub fn error_formatter(
self,
value: SE::ErrorFormatter,
) -> ShellBuilder<SE, SetErrorFormatter<S>>where
S::ErrorFormatter: IsUnset,
pub fn error_formatter(
self,
value: SE::ErrorFormatter,
) -> ShellBuilder<SE, SetErrorFormatter<S>>where
S::ErrorFormatter: IsUnset,
Sourcepub fn maybe_error_formatter(
self,
value: Option<SE::ErrorFormatter>,
) -> ShellBuilder<SE, SetErrorFormatter<S>>where
S::ErrorFormatter: IsUnset,
pub fn maybe_error_formatter(
self,
value: Option<SE::ErrorFormatter>,
) -> ShellBuilder<SE, SetErrorFormatter<S>>where
S::ErrorFormatter: IsUnset,
Sourcepub fn disallow_overwriting_regular_files_via_output_redirection(
self,
value: bool,
) -> ShellBuilder<SE, SetDisallowOverwritingRegularFilesViaOutputRedirection<S>>where
S::DisallowOverwritingRegularFilesViaOutputRedirection: IsUnset,
pub fn disallow_overwriting_regular_files_via_output_redirection(
self,
value: bool,
) -> ShellBuilder<SE, SetDisallowOverwritingRegularFilesViaOutputRedirection<S>>where
S::DisallowOverwritingRegularFilesViaOutputRedirection: IsUnset,
Sourcepub fn maybe_disallow_overwriting_regular_files_via_output_redirection(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDisallowOverwritingRegularFilesViaOutputRedirection<S>>where
S::DisallowOverwritingRegularFilesViaOutputRedirection: IsUnset,
pub fn maybe_disallow_overwriting_regular_files_via_output_redirection(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDisallowOverwritingRegularFilesViaOutputRedirection<S>>where
S::DisallowOverwritingRegularFilesViaOutputRedirection: IsUnset,
Sourcepub fn do_not_execute_commands(
self,
value: bool,
) -> ShellBuilder<SE, SetDoNotExecuteCommands<S>>where
S::DoNotExecuteCommands: IsUnset,
pub fn do_not_execute_commands(
self,
value: bool,
) -> ShellBuilder<SE, SetDoNotExecuteCommands<S>>where
S::DoNotExecuteCommands: IsUnset,
Sourcepub fn maybe_do_not_execute_commands(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDoNotExecuteCommands<S>>where
S::DoNotExecuteCommands: IsUnset,
pub fn maybe_do_not_execute_commands(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDoNotExecuteCommands<S>>where
S::DoNotExecuteCommands: IsUnset,
Sourcepub fn exit_after_one_command(
self,
value: bool,
) -> ShellBuilder<SE, SetExitAfterOneCommand<S>>where
S::ExitAfterOneCommand: IsUnset,
pub fn exit_after_one_command(
self,
value: bool,
) -> ShellBuilder<SE, SetExitAfterOneCommand<S>>where
S::ExitAfterOneCommand: IsUnset,
Sourcepub fn maybe_exit_after_one_command(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetExitAfterOneCommand<S>>where
S::ExitAfterOneCommand: IsUnset,
pub fn maybe_exit_after_one_command(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetExitAfterOneCommand<S>>where
S::ExitAfterOneCommand: IsUnset,
Sourcepub fn interactive(self, value: bool) -> ShellBuilder<SE, SetInteractive<S>>where
S::Interactive: IsUnset,
pub fn interactive(self, value: bool) -> ShellBuilder<SE, SetInteractive<S>>where
S::Interactive: IsUnset,
Sourcepub fn maybe_interactive(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetInteractive<S>>where
S::Interactive: IsUnset,
pub fn maybe_interactive(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetInteractive<S>>where
S::Interactive: IsUnset,
Sourcepub fn login(self, value: bool) -> ShellBuilder<SE, SetLogin<S>>where
S::Login: IsUnset,
pub fn login(self, value: bool) -> ShellBuilder<SE, SetLogin<S>>where
S::Login: IsUnset,
Sourcepub fn maybe_login(self, value: Option<bool>) -> ShellBuilder<SE, SetLogin<S>>where
S::Login: IsUnset,
pub fn maybe_login(self, value: Option<bool>) -> ShellBuilder<SE, SetLogin<S>>where
S::Login: IsUnset,
Sourcepub fn no_editing(self, value: bool) -> ShellBuilder<SE, SetNoEditing<S>>where
S::NoEditing: IsUnset,
pub fn no_editing(self, value: bool) -> ShellBuilder<SE, SetNoEditing<S>>where
S::NoEditing: IsUnset,
Sourcepub fn maybe_no_editing(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetNoEditing<S>>where
S::NoEditing: IsUnset,
pub fn maybe_no_editing(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetNoEditing<S>>where
S::NoEditing: IsUnset,
Sourcepub fn profile(
self,
value: ProfileLoadBehavior,
) -> ShellBuilder<SE, SetProfile<S>>where
S::Profile: IsUnset,
pub fn profile(
self,
value: ProfileLoadBehavior,
) -> ShellBuilder<SE, SetProfile<S>>where
S::Profile: IsUnset,
Sourcepub fn maybe_profile(
self,
value: Option<ProfileLoadBehavior>,
) -> ShellBuilder<SE, SetProfile<S>>where
S::Profile: IsUnset,
pub fn maybe_profile(
self,
value: Option<ProfileLoadBehavior>,
) -> ShellBuilder<SE, SetProfile<S>>where
S::Profile: IsUnset,
Sourcepub fn rc(self, value: RcLoadBehavior) -> ShellBuilder<SE, SetRc<S>>where
S::Rc: IsUnset,
pub fn rc(self, value: RcLoadBehavior) -> ShellBuilder<SE, SetRc<S>>where
S::Rc: IsUnset,
Sourcepub fn maybe_rc(
self,
value: Option<RcLoadBehavior>,
) -> ShellBuilder<SE, SetRc<S>>where
S::Rc: IsUnset,
pub fn maybe_rc(
self,
value: Option<RcLoadBehavior>,
) -> ShellBuilder<SE, SetRc<S>>where
S::Rc: IsUnset,
Sourcepub fn do_not_inherit_env(
self,
value: bool,
) -> ShellBuilder<SE, SetDoNotInheritEnv<S>>where
S::DoNotInheritEnv: IsUnset,
pub fn do_not_inherit_env(
self,
value: bool,
) -> ShellBuilder<SE, SetDoNotInheritEnv<S>>where
S::DoNotInheritEnv: IsUnset,
Sourcepub fn maybe_do_not_inherit_env(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDoNotInheritEnv<S>>where
S::DoNotInheritEnv: IsUnset,
pub fn maybe_do_not_inherit_env(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDoNotInheritEnv<S>>where
S::DoNotInheritEnv: IsUnset,
Sourcepub fn skip_well_known_vars(
self,
value: bool,
) -> ShellBuilder<SE, SetSkipWellKnownVars<S>>where
S::SkipWellKnownVars: IsUnset,
pub fn skip_well_known_vars(
self,
value: bool,
) -> ShellBuilder<SE, SetSkipWellKnownVars<S>>where
S::SkipWellKnownVars: IsUnset,
Sourcepub fn maybe_skip_well_known_vars(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetSkipWellKnownVars<S>>where
S::SkipWellKnownVars: IsUnset,
pub fn maybe_skip_well_known_vars(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetSkipWellKnownVars<S>>where
S::SkipWellKnownVars: IsUnset,
Sourcepub fn fds(
self,
value: HashMap<ShellFd, OpenFile>,
) -> ShellBuilder<SE, SetFds<S>>where
S::Fds: IsUnset,
pub fn fds(
self,
value: HashMap<ShellFd, OpenFile>,
) -> ShellBuilder<SE, SetFds<S>>where
S::Fds: IsUnset,
Sourcepub fn maybe_fds(
self,
value: Option<HashMap<ShellFd, OpenFile>>,
) -> ShellBuilder<SE, SetFds<S>>where
S::Fds: IsUnset,
pub fn maybe_fds(
self,
value: Option<HashMap<ShellFd, OpenFile>>,
) -> ShellBuilder<SE, SetFds<S>>where
S::Fds: IsUnset,
Sourcepub fn external_cmd_leads_session(
self,
value: bool,
) -> ShellBuilder<SE, SetExternalCmdLeadsSession<S>>where
S::ExternalCmdLeadsSession: IsUnset,
pub fn external_cmd_leads_session(
self,
value: bool,
) -> ShellBuilder<SE, SetExternalCmdLeadsSession<S>>where
S::ExternalCmdLeadsSession: IsUnset,
Sourcepub fn maybe_external_cmd_leads_session(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetExternalCmdLeadsSession<S>>where
S::ExternalCmdLeadsSession: IsUnset,
pub fn maybe_external_cmd_leads_session(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetExternalCmdLeadsSession<S>>where
S::ExternalCmdLeadsSession: IsUnset,
Sourcepub fn working_dir(self, value: PathBuf) -> ShellBuilder<SE, SetWorkingDir<S>>where
S::WorkingDir: IsUnset,
pub fn working_dir(self, value: PathBuf) -> ShellBuilder<SE, SetWorkingDir<S>>where
S::WorkingDir: IsUnset,
Sourcepub fn maybe_working_dir(
self,
value: Option<PathBuf>,
) -> ShellBuilder<SE, SetWorkingDir<S>>where
S::WorkingDir: IsUnset,
pub fn maybe_working_dir(
self,
value: Option<PathBuf>,
) -> ShellBuilder<SE, SetWorkingDir<S>>where
S::WorkingDir: IsUnset,
Sourcepub fn posix(self, value: bool) -> ShellBuilder<SE, SetPosix<S>>where
S::Posix: IsUnset,
pub fn posix(self, value: bool) -> ShellBuilder<SE, SetPosix<S>>where
S::Posix: IsUnset,
Sourcepub fn maybe_posix(self, value: Option<bool>) -> ShellBuilder<SE, SetPosix<S>>where
S::Posix: IsUnset,
pub fn maybe_posix(self, value: Option<bool>) -> ShellBuilder<SE, SetPosix<S>>where
S::Posix: IsUnset,
Sourcepub fn print_commands_and_arguments(
self,
value: bool,
) -> ShellBuilder<SE, SetPrintCommandsAndArguments<S>>where
S::PrintCommandsAndArguments: IsUnset,
pub fn print_commands_and_arguments(
self,
value: bool,
) -> ShellBuilder<SE, SetPrintCommandsAndArguments<S>>where
S::PrintCommandsAndArguments: IsUnset,
Sourcepub fn maybe_print_commands_and_arguments(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetPrintCommandsAndArguments<S>>where
S::PrintCommandsAndArguments: IsUnset,
pub fn maybe_print_commands_and_arguments(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetPrintCommandsAndArguments<S>>where
S::PrintCommandsAndArguments: IsUnset,
Sourcepub fn read_commands_from_stdin(
self,
value: bool,
) -> ShellBuilder<SE, SetReadCommandsFromStdin<S>>where
S::ReadCommandsFromStdin: IsUnset,
pub fn read_commands_from_stdin(
self,
value: bool,
) -> ShellBuilder<SE, SetReadCommandsFromStdin<S>>where
S::ReadCommandsFromStdin: IsUnset,
Sourcepub fn maybe_read_commands_from_stdin(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetReadCommandsFromStdin<S>>where
S::ReadCommandsFromStdin: IsUnset,
pub fn maybe_read_commands_from_stdin(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetReadCommandsFromStdin<S>>where
S::ReadCommandsFromStdin: IsUnset,
Sourcepub fn shell_name(self, value: String) -> ShellBuilder<SE, SetShellName<S>>where
S::ShellName: IsUnset,
pub fn shell_name(self, value: String) -> ShellBuilder<SE, SetShellName<S>>where
S::ShellName: IsUnset,
Sourcepub fn maybe_shell_name(
self,
value: Option<String>,
) -> ShellBuilder<SE, SetShellName<S>>where
S::ShellName: IsUnset,
pub fn maybe_shell_name(
self,
value: Option<String>,
) -> ShellBuilder<SE, SetShellName<S>>where
S::ShellName: IsUnset,
Sourcepub fn shell_args(self, value: Vec<String>) -> ShellBuilder<SE, SetShellArgs<S>>where
S::ShellArgs: IsUnset,
pub fn shell_args(self, value: Vec<String>) -> ShellBuilder<SE, SetShellArgs<S>>where
S::ShellArgs: IsUnset,
Sourcepub fn maybe_shell_args(
self,
value: Option<Vec<String>>,
) -> ShellBuilder<SE, SetShellArgs<S>>where
S::ShellArgs: IsUnset,
pub fn maybe_shell_args(
self,
value: Option<Vec<String>>,
) -> ShellBuilder<SE, SetShellArgs<S>>where
S::ShellArgs: IsUnset,
Sourcepub fn shell_product_display_str(
self,
value: String,
) -> ShellBuilder<SE, SetShellProductDisplayStr<S>>where
S::ShellProductDisplayStr: IsUnset,
pub fn shell_product_display_str(
self,
value: String,
) -> ShellBuilder<SE, SetShellProductDisplayStr<S>>where
S::ShellProductDisplayStr: IsUnset,
Sourcepub fn maybe_shell_product_display_str(
self,
value: Option<String>,
) -> ShellBuilder<SE, SetShellProductDisplayStr<S>>where
S::ShellProductDisplayStr: IsUnset,
pub fn maybe_shell_product_display_str(
self,
value: Option<String>,
) -> ShellBuilder<SE, SetShellProductDisplayStr<S>>where
S::ShellProductDisplayStr: IsUnset,
Sourcepub fn sh_mode(self, value: bool) -> ShellBuilder<SE, SetShMode<S>>where
S::ShMode: IsUnset,
pub fn sh_mode(self, value: bool) -> ShellBuilder<SE, SetShMode<S>>where
S::ShMode: IsUnset,
Sourcepub fn maybe_sh_mode(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetShMode<S>>where
S::ShMode: IsUnset,
pub fn maybe_sh_mode(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetShMode<S>>where
S::ShMode: IsUnset,
Sourcepub fn treat_unset_variables_as_error(
self,
value: bool,
) -> ShellBuilder<SE, SetTreatUnsetVariablesAsError<S>>where
S::TreatUnsetVariablesAsError: IsUnset,
pub fn treat_unset_variables_as_error(
self,
value: bool,
) -> ShellBuilder<SE, SetTreatUnsetVariablesAsError<S>>where
S::TreatUnsetVariablesAsError: IsUnset,
Sourcepub fn maybe_treat_unset_variables_as_error(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetTreatUnsetVariablesAsError<S>>where
S::TreatUnsetVariablesAsError: IsUnset,
pub fn maybe_treat_unset_variables_as_error(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetTreatUnsetVariablesAsError<S>>where
S::TreatUnsetVariablesAsError: IsUnset,
Sourcepub fn exit_on_nonzero_command_exit(
self,
value: bool,
) -> ShellBuilder<SE, SetExitOnNonzeroCommandExit<S>>where
S::ExitOnNonzeroCommandExit: IsUnset,
pub fn exit_on_nonzero_command_exit(
self,
value: bool,
) -> ShellBuilder<SE, SetExitOnNonzeroCommandExit<S>>where
S::ExitOnNonzeroCommandExit: IsUnset,
Sourcepub fn maybe_exit_on_nonzero_command_exit(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetExitOnNonzeroCommandExit<S>>where
S::ExitOnNonzeroCommandExit: IsUnset,
pub fn maybe_exit_on_nonzero_command_exit(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetExitOnNonzeroCommandExit<S>>where
S::ExitOnNonzeroCommandExit: IsUnset,
Sourcepub fn disable_pathname_expansion(
self,
value: bool,
) -> ShellBuilder<SE, SetDisablePathnameExpansion<S>>where
S::DisablePathnameExpansion: IsUnset,
pub fn disable_pathname_expansion(
self,
value: bool,
) -> ShellBuilder<SE, SetDisablePathnameExpansion<S>>where
S::DisablePathnameExpansion: IsUnset,
Sourcepub fn maybe_disable_pathname_expansion(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDisablePathnameExpansion<S>>where
S::DisablePathnameExpansion: IsUnset,
pub fn maybe_disable_pathname_expansion(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetDisablePathnameExpansion<S>>where
S::DisablePathnameExpansion: IsUnset,
Sourcepub fn verbose(self, value: bool) -> ShellBuilder<SE, SetVerbose<S>>where
S::Verbose: IsUnset,
pub fn verbose(self, value: bool) -> ShellBuilder<SE, SetVerbose<S>>where
S::Verbose: IsUnset,
Sourcepub fn maybe_verbose(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetVerbose<S>>where
S::Verbose: IsUnset,
pub fn maybe_verbose(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetVerbose<S>>where
S::Verbose: IsUnset,
Sourcepub fn parser(self, value: ParserImpl) -> ShellBuilder<SE, SetParser<S>>where
S::Parser: IsUnset,
pub fn parser(self, value: ParserImpl) -> ShellBuilder<SE, SetParser<S>>where
S::Parser: IsUnset,
Sourcepub fn maybe_parser(
self,
value: Option<ParserImpl>,
) -> ShellBuilder<SE, SetParser<S>>where
S::Parser: IsUnset,
pub fn maybe_parser(
self,
value: Option<ParserImpl>,
) -> ShellBuilder<SE, SetParser<S>>where
S::Parser: IsUnset,
Sourcepub fn command_string_mode(
self,
value: bool,
) -> ShellBuilder<SE, SetCommandStringMode<S>>where
S::CommandStringMode: IsUnset,
pub fn command_string_mode(
self,
value: bool,
) -> ShellBuilder<SE, SetCommandStringMode<S>>where
S::CommandStringMode: IsUnset,
Sourcepub fn maybe_command_string_mode(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetCommandStringMode<S>>where
S::CommandStringMode: IsUnset,
pub fn maybe_command_string_mode(
self,
value: Option<bool>,
) -> ShellBuilder<SE, SetCommandStringMode<S>>where
S::CommandStringMode: IsUnset,
Sourcepub fn max_function_call_depth(
self,
value: usize,
) -> ShellBuilder<SE, SetMaxFunctionCallDepth<S>>where
S::MaxFunctionCallDepth: IsUnset,
pub fn max_function_call_depth(
self,
value: usize,
) -> ShellBuilder<SE, SetMaxFunctionCallDepth<S>>where
S::MaxFunctionCallDepth: IsUnset,
Sourcepub fn maybe_max_function_call_depth(
self,
value: Option<usize>,
) -> ShellBuilder<SE, SetMaxFunctionCallDepth<S>>where
S::MaxFunctionCallDepth: IsUnset,
pub fn maybe_max_function_call_depth(
self,
value: Option<usize>,
) -> ShellBuilder<SE, SetMaxFunctionCallDepth<S>>where
S::MaxFunctionCallDepth: IsUnset,
Sourcepub fn key_bindings(
self,
value: Arc<Mutex<dyn KeyBindings>>,
) -> ShellBuilder<SE, SetKeyBindings<S>>where
S::KeyBindings: IsUnset,
pub fn key_bindings(
self,
value: Arc<Mutex<dyn KeyBindings>>,
) -> ShellBuilder<SE, SetKeyBindings<S>>where
S::KeyBindings: IsUnset,
Sourcepub fn maybe_key_bindings(
self,
value: Option<Arc<Mutex<dyn KeyBindings>>>,
) -> ShellBuilder<SE, SetKeyBindings<S>>where
S::KeyBindings: IsUnset,
pub fn maybe_key_bindings(
self,
value: Option<Arc<Mutex<dyn KeyBindings>>>,
) -> ShellBuilder<SE, SetKeyBindings<S>>where
S::KeyBindings: IsUnset,
Sourcepub fn shell_version(
self,
value: String,
) -> ShellBuilder<SE, SetShellVersion<S>>where
S::ShellVersion: IsUnset,
pub fn shell_version(
self,
value: String,
) -> ShellBuilder<SE, SetShellVersion<S>>where
S::ShellVersion: IsUnset,
Sourcepub fn maybe_shell_version(
self,
value: Option<String>,
) -> ShellBuilder<SE, SetShellVersion<S>>where
S::ShellVersion: IsUnset,
pub fn maybe_shell_version(
self,
value: Option<String>,
) -> ShellBuilder<SE, SetShellVersion<S>>where
S::ShellVersion: IsUnset,
Auto Trait Implementations§
impl<SE, S> Freeze for ShellBuilder<SE, S>
impl<SE = ShellExtensionsImpl, S = Empty> !RefUnwindSafe for ShellBuilder<SE, S>
impl<SE, S> Send for ShellBuilder<SE, S>
impl<SE, S> Sync for ShellBuilder<SE, S>
impl<SE, S> Unpin for ShellBuilder<SE, S>
impl<SE, S> UnsafeUnpin for ShellBuilder<SE, S>
impl<SE = ShellExtensionsImpl, S = Empty> !UnwindSafe for ShellBuilder<SE, S>
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