pub struct ResetSigmask;Available on Unix and crate feature
reset-sigmask and crate feature tokio1 only.Expand description
Wrapper which resets the process signal mask.
By default a Command on Unix inherits its parent’s [signal mask]. However, in some cases this is not what you want. This wrapper resets the command’s sigmask by unblocking all signals.
Trait Implementations§
Source§impl Clone for ResetSigmask
impl Clone for ResetSigmask
Source§fn clone(&self) -> ResetSigmask
fn clone(&self) -> ResetSigmask
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 ResetSigmask
impl Debug for ResetSigmask
Source§impl TokioCommandWrapper for ResetSigmask
impl TokioCommandWrapper for ResetSigmask
Source§fn pre_spawn(
&mut self,
command: &mut Command,
_core: &TokioCommandWrap,
) -> Result<()>
fn pre_spawn( &mut self, command: &mut Command, _core: &TokioCommandWrap, ) -> Result<()>
Called before the command is spawned, to mutate it as needed. Read more
Source§fn extend(&mut self, _other: Box<dyn TokioCommandWrapper>)
fn extend(&mut self, _other: Box<dyn TokioCommandWrapper>)
Called on a first instance if a second of the same type is added. Read more
Source§fn post_spawn(
&mut self,
_child: &mut Child,
_core: &TokioCommandWrap,
) -> Result<()>
fn post_spawn( &mut self, _child: &mut Child, _core: &TokioCommandWrap, ) -> Result<()>
Called after spawn, but before the child is wrapped. Read more
Source§fn wrap_child(
&mut self,
child: Box<dyn TokioChildWrapper>,
_core: &TokioCommandWrap,
) -> Result<Box<dyn TokioChildWrapper>>
fn wrap_child( &mut self, child: Box<dyn TokioChildWrapper>, _core: &TokioCommandWrap, ) -> Result<Box<dyn TokioChildWrapper>>
Called to wrap a child into this command wrapper’s child wrapper. Read more
impl Copy for ResetSigmask
Auto Trait Implementations§
impl Freeze for ResetSigmask
impl RefUnwindSafe for ResetSigmask
impl Send for ResetSigmask
impl Sync for ResetSigmask
impl Unpin for ResetSigmask
impl UnwindSafe for ResetSigmask
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