pub struct ChildHandle {
pub id: String,
}Expand description
A handle to a child task spawned by a SupervisorRuntime.
Contains the logical identifier of the child, which is used for
logging and passed to Supervisor::on_child_failure when the
child reports an error.
Fields§
§id: StringThe logical identifier of this child task.
Trait Implementations§
Source§impl Clone for ChildHandle
impl Clone for ChildHandle
Source§fn clone(&self) -> ChildHandle
fn clone(&self) -> ChildHandle
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ChildHandle
impl RefUnwindSafe for ChildHandle
impl Send for ChildHandle
impl Sync for ChildHandle
impl Unpin for ChildHandle
impl UnsafeUnpin for ChildHandle
impl UnwindSafe for ChildHandle
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