pub struct SpawnedChildHandle { /* private fields */ }Expand description
Handle to a spawned child.
Provides control over a child that was spawned via ChildSpawner::spawn().
Trait Implementations§
Source§impl AsyncChildHandle for SpawnedChildHandle
impl AsyncChildHandle for SpawnedChildHandle
Source§fn run<'life0, 'async_trait>(
&'life0 mut self,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<ChildResult, RunError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 mut self,
input: Value,
) -> Pin<Box<dyn Future<Output = Result<ChildResult, RunError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Runs the child with the given input (async). Read more
Source§fn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Returns
true if the child has completed (success, error, or aborted).Source§impl ChildHandle for SpawnedChildHandle
impl ChildHandle for SpawnedChildHandle
Auto Trait Implementations§
impl Freeze for SpawnedChildHandle
impl RefUnwindSafe for SpawnedChildHandle
impl Send for SpawnedChildHandle
impl Sync for SpawnedChildHandle
impl Unpin for SpawnedChildHandle
impl UnsafeUnpin for SpawnedChildHandle
impl UnwindSafe for SpawnedChildHandle
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