pub trait ShellBuilderState: Sized {
Show 22 associated items
type DisallowOverwritingRegularFilesViaOutputRedirection;
type DoNotExecuteCommands;
type ExitAfterOneCommand;
type Interactive;
type Login;
type NoEditing;
type NoProfile;
type NoRc;
type RcFile;
type DoNotInheritEnv;
type Fds;
type Posix;
type PrintCommandsAndArguments;
type ReadCommandsFromStdin;
type ShellName;
type ShellProductDisplayStr;
type ShMode;
type Verbose;
type MaxFunctionCallDepth;
type KeyBindings;
type ErrorFormatter;
type ShellVersion;
}Expand description
Builder’s type state specifies if members are set or not (unset).
You can use the associated types of this trait to control the state of individual members with the [IsSet] and [IsUnset] traits. You can change the state of the members with the Set* structs available in this module.
Required Associated Types§
Sourcetype DisallowOverwritingRegularFilesViaOutputRedirection
type DisallowOverwritingRegularFilesViaOutputRedirection
Type state of the member disallow_overwriting_regular_files_via_output_redirection.
It can implement either [IsSet] or [IsUnset]
Sourcetype DoNotExecuteCommands
type DoNotExecuteCommands
Type state of the member do_not_execute_commands.
It can implement either [IsSet] or [IsUnset]
Sourcetype ExitAfterOneCommand
type ExitAfterOneCommand
Type state of the member exit_after_one_command.
It can implement either [IsSet] or [IsUnset]
Sourcetype Interactive
type Interactive
Type state of the member interactive.
It can implement either [IsSet] or [IsUnset]
Sourcetype NoEditing
type NoEditing
Type state of the member no_editing.
It can implement either [IsSet] or [IsUnset]
Sourcetype NoProfile
type NoProfile
Type state of the member no_profile.
It can implement either [IsSet] or [IsUnset]
Sourcetype DoNotInheritEnv
type DoNotInheritEnv
Type state of the member do_not_inherit_env.
It can implement either [IsSet] or [IsUnset]
Sourcetype PrintCommandsAndArguments
type PrintCommandsAndArguments
Type state of the member print_commands_and_arguments.
It can implement either [IsSet] or [IsUnset]
Sourcetype ReadCommandsFromStdin
type ReadCommandsFromStdin
Type state of the member read_commands_from_stdin.
It can implement either [IsSet] or [IsUnset]
Sourcetype ShellName
type ShellName
Type state of the member shell_name.
It can implement either [IsSet] or [IsUnset]
Sourcetype ShellProductDisplayStr
type ShellProductDisplayStr
Type state of the member shell_product_display_str.
It can implement either [IsSet] or [IsUnset]
Sourcetype MaxFunctionCallDepth
type MaxFunctionCallDepth
Type state of the member max_function_call_depth.
It can implement either [IsSet] or [IsUnset]
Sourcetype KeyBindings
type KeyBindings
Type state of the member key_bindings.
It can implement either [IsSet] or [IsUnset]
Sourcetype ErrorFormatter
type ErrorFormatter
Type state of the member error_formatter.
It can implement either [IsSet] or [IsUnset]
Sourcetype ShellVersion
type ShellVersion
Type state of the member shell_version.
It can implement either [IsSet] or [IsUnset]
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.