pub struct SpawnedUnit<T> { /* private fields */ }
Expand description
A handle to a spawned unit.
Implementations§
Source§impl<T> SpawnedUnit<T>
impl<T> SpawnedUnit<T>
Sourcepub fn handle(&self) -> &UnitHandle
pub fn handle(&self) -> &UnitHandle
Gets the unit handle for use with methods like
UnitBuilder::depends_on
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SpawnedUnit<T>
impl<T> !RefUnwindSafe for SpawnedUnit<T>
impl<T> Send for SpawnedUnit<T>where
T: Send,
impl<T> Sync for SpawnedUnit<T>
impl<T> Unpin for SpawnedUnit<T>
impl<T> !UnwindSafe for SpawnedUnit<T>
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