ShellBuilderState

Trait ShellBuilderState 

Source
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§

Source

type DisallowOverwritingRegularFilesViaOutputRedirection

Type state of the member disallow_overwriting_regular_files_via_output_redirection.

It can implement either [IsSet] or [IsUnset]

Source

type DoNotExecuteCommands

Type state of the member do_not_execute_commands.

It can implement either [IsSet] or [IsUnset]

Source

type ExitAfterOneCommand

Type state of the member exit_after_one_command.

It can implement either [IsSet] or [IsUnset]

Source

type Interactive

Type state of the member interactive.

It can implement either [IsSet] or [IsUnset]

Source

type Login

Type state of the member login.

It can implement either [IsSet] or [IsUnset]

Source

type NoEditing

Type state of the member no_editing.

It can implement either [IsSet] or [IsUnset]

Source

type NoProfile

Type state of the member no_profile.

It can implement either [IsSet] or [IsUnset]

Source

type NoRc

Type state of the member no_rc.

It can implement either [IsSet] or [IsUnset]

Source

type RcFile

Type state of the member rc_file.

It can implement either [IsSet] or [IsUnset]

Source

type DoNotInheritEnv

Type state of the member do_not_inherit_env.

It can implement either [IsSet] or [IsUnset]

Source

type Fds

Type state of the member fds.

It can implement either [IsSet] or [IsUnset]

Source

type Posix

Type state of the member posix.

It can implement either [IsSet] or [IsUnset]

Source

type PrintCommandsAndArguments

Type state of the member print_commands_and_arguments.

It can implement either [IsSet] or [IsUnset]

Source

type ReadCommandsFromStdin

Type state of the member read_commands_from_stdin.

It can implement either [IsSet] or [IsUnset]

Source

type ShellName

Type state of the member shell_name.

It can implement either [IsSet] or [IsUnset]

Source

type ShellProductDisplayStr

Type state of the member shell_product_display_str.

It can implement either [IsSet] or [IsUnset]

Source

type ShMode

Type state of the member sh_mode.

It can implement either [IsSet] or [IsUnset]

Source

type Verbose

Type state of the member verbose.

It can implement either [IsSet] or [IsUnset]

Source

type MaxFunctionCallDepth

Type state of the member max_function_call_depth.

It can implement either [IsSet] or [IsUnset]

Source

type KeyBindings

Type state of the member key_bindings.

It can implement either [IsSet] or [IsUnset]

Source

type ErrorFormatter

Type state of the member error_formatter.

It can implement either [IsSet] or [IsUnset]

Source

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.

Implementors§