Struct orchestra::SpawnedSubsystem
source · [−]pub struct SpawnedSubsystem<E>where
E: Error + Send + Sync + 'static + From<OrchestraError>,{
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 strName of the subsystem being spawned.
future: BoxFuture<'static, Result<(), E>>The task of the subsystem being spawned.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more