Struct process_wrap::tokio::KillOnDrop
source · pub struct KillOnDrop;Available on crate features
kill-on-drop and tokio1 only.Expand description
Shim wrapper which sets kill-on-drop on a Command.
This wrapper exists to be able to set the kill-on-drop flag on a Command and also store that
fact in the wrapper, so that it can be used by other wrappers. Notably this is used by the
JobObject wrapper.
Trait Implementations§
source§impl Clone for KillOnDrop
impl Clone for KillOnDrop
source§fn clone(&self) -> KillOnDrop
fn clone(&self) -> KillOnDrop
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 KillOnDrop
impl Debug for KillOnDrop
source§impl TokioCommandWrapper for KillOnDrop
impl TokioCommandWrapper for KillOnDrop
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 KillOnDrop
Auto Trait Implementations§
impl Freeze for KillOnDrop
impl RefUnwindSafe for KillOnDrop
impl Send for KillOnDrop
impl Sync for KillOnDrop
impl Unpin for KillOnDrop
impl UnwindSafe for KillOnDrop
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