pub enum DropPolicy {
Detach,
KillTree,
}Expand description
What dropping a live crate::Child does to its process tree.
Variants§
Detach
Close windows-spawn’s process handle without terminating the process.
KillTree
Terminate the child and all descendants in windows-spawn’s private Job.
Trait Implementations§
Source§impl Clone for DropPolicy
impl Clone for DropPolicy
Source§fn clone(&self) -> DropPolicy
fn clone(&self) -> DropPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DropPolicy
Source§impl Debug for DropPolicy
impl Debug for DropPolicy
Source§impl Default for DropPolicy
impl Default for DropPolicy
Source§fn default() -> DropPolicy
fn default() -> DropPolicy
Returns the “default value” for a type. Read more
impl Eq for DropPolicy
Source§impl Hash for DropPolicy
impl Hash for DropPolicy
Source§impl PartialEq for DropPolicy
impl PartialEq for DropPolicy
impl StructuralPartialEq for DropPolicy
Auto Trait Implementations§
impl Freeze for DropPolicy
impl RefUnwindSafe for DropPolicy
impl Send for DropPolicy
impl Sync for DropPolicy
impl Unpin for DropPolicy
impl UnsafeUnpin for DropPolicy
impl UnwindSafe for DropPolicy
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