pub struct SpawnedWorkload { /* private fields */ }Expand description
Handle to a spawned workload child. Drops do not kill — caller wait()s.
Implementations§
Source§impl SpawnedWorkload
impl SpawnedWorkload
Sourcepub fn pid(&self) -> u32
pub fn pid(&self) -> u32
PID of the child process (still valid until SpawnedWorkload::wait).
Sourcepub fn wait(&mut self) -> Result<ExitStatus>
pub fn wait(&mut self) -> Result<ExitStatus>
Wait for the child to exit and return its exit status.
Auto Trait Implementations§
impl Freeze for SpawnedWorkload
impl RefUnwindSafe for SpawnedWorkload
impl Send for SpawnedWorkload
impl Sync for SpawnedWorkload
impl Unpin for SpawnedWorkload
impl UnsafeUnpin for SpawnedWorkload
impl UnwindSafe for SpawnedWorkload
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