pub struct Termination { /* private fields */ }Expand description
A request to end the process: an interrupt or termination signal on Unix, a console control event on Windows.
Implementations§
Source§impl Termination
impl Termination
Sourcepub const fn new(name: &'static str, exit_code: u8, closing: bool) -> Self
pub const fn new(name: &'static str, exit_code: u8, closing: bool) -> Self
A termination as the platform reports it; also how a test describes one.
Sourcepub const fn exit_code(self) -> u8
pub const fn exit_code(self) -> u8
The exit status a process that ends because of it reports: 128 plus
the signal number, as a shell reports a process the signal killed. On
Windows an interrupt or break reports 130 (as SIGINT would) and a
closing console, logoff or shutdown 143 (as SIGTERM would).
Trait Implementations§
Source§impl Clone for Termination
impl Clone for Termination
impl Copy for Termination
Source§impl Debug for Termination
impl Debug for Termination
impl Eq for Termination
Source§impl PartialEq for Termination
impl PartialEq for Termination
impl StructuralPartialEq for Termination
Auto Trait Implementations§
impl Freeze for Termination
impl RefUnwindSafe for Termination
impl Send for Termination
impl Sync for Termination
impl Unpin for Termination
impl UnsafeUnpin for Termination
impl UnwindSafe for Termination
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