pub struct ProgramExit {
pub message: String,
pub exit_status: i32,
pub styled_message: Option<String>,
pub kind: ExitKind,
}Expand description
DTO struct representing an early or abrupt program exit.
Fields§
§message: StringThe message linked to the program exit.
exit_status: i32The exit status code to be returned by the script.
styled_message: Option<String>The ANSI-styled message linked to the program exit.
Same as ProgramExit::message but styled.
kind: ExitKindThe kind of program exit.
Trait Implementations§
Source§impl Clone for ProgramExit
impl Clone for ProgramExit
Source§fn clone(&self) -> ProgramExit
fn clone(&self) -> ProgramExit
Returns a copy of the value. Read more
1.0.0 · 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 ProgramExit
impl Debug for ProgramExit
Source§impl PartialEq for ProgramExit
impl PartialEq for ProgramExit
impl StructuralPartialEq for ProgramExit
Auto Trait Implementations§
impl Freeze for ProgramExit
impl RefUnwindSafe for ProgramExit
impl Send for ProgramExit
impl Sync for ProgramExit
impl Unpin for ProgramExit
impl UnwindSafe for ProgramExit
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