pub struct BashTrap {
pub signal: String,
pub handler: String,
pub reset: bool,
}Expand description
A signal trap specification.
Fields§
§signal: StringSignal name (EXIT, ERR, INT, TERM, HUP, etc.).
handler: StringHandler command or function name.
reset: boolWhether to reset to default (use - as handler).
Implementations§
Trait Implementations§
impl StructuralPartialEq for BashTrap
Auto Trait Implementations§
impl Freeze for BashTrap
impl RefUnwindSafe for BashTrap
impl Send for BashTrap
impl Sync for BashTrap
impl Unpin for BashTrap
impl UnsafeUnpin for BashTrap
impl UnwindSafe for BashTrap
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