pub struct ShellSettings {
pub errexit: bool,
pub verbose: bool,
pub xtrace: bool,
pub pipefail: bool,
pub nounset: bool,
pub noglob: bool,
pub allexport: bool,
}Expand description
Shell settings for controlling execution behavior
Fields§
§errexit: boolExit immediately if a command exits with non-zero status (set -e)
verbose: boolPrint commands as they are executed (set -v)
xtrace: boolPrint trace of commands (set -x)
pipefail: boolReturn value of a pipeline is the status of the last command to exit with non-zero (set -o pipefail)
nounset: boolTreat unset variables as an error (set -u)
noglob: boolDisable filename globbing (set -f)
allexport: boolExport all variables (set -a)
Implementations§
Trait Implementations§
Source§impl Clone for ShellSettings
impl Clone for ShellSettings
Source§fn clone(&self) -> ShellSettings
fn clone(&self) -> ShellSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShellSettings
impl Debug for ShellSettings
Source§impl Default for ShellSettings
impl Default for ShellSettings
Source§fn default() -> ShellSettings
fn default() -> ShellSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShellSettings
impl RefUnwindSafe for ShellSettings
impl Send for ShellSettings
impl Sync for ShellSettings
impl Unpin for ShellSettings
impl UnsafeUnpin for ShellSettings
impl UnwindSafe for ShellSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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