Struct orchestra::SpawnedSubsystem
source · pub struct SpawnedSubsystem<E>{
pub name: &'static str,
pub future: BoxFuture<'static, Result<(), E>>,
}
Expand description
An asynchronous subsystem task..
In essence it’s just a new type wrapping a BoxFuture
.
Fields§
§name: &'static str
Name of the subsystem being spawned.
future: BoxFuture<'static, Result<(), E>>
The task of the subsystem being spawned.
Auto Trait Implementations§
impl<E> Freeze for SpawnedSubsystem<E>
impl<E> !RefUnwindSafe for SpawnedSubsystem<E>
impl<E> Send for SpawnedSubsystem<E>
impl<E> !Sync for SpawnedSubsystem<E>
impl<E> Unpin for SpawnedSubsystem<E>
impl<E> !UnwindSafe for SpawnedSubsystem<E>
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