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 str
Name of the subsystem being spawned.
future: BoxFuture<'static, Result<(), E>>
The task of the subsystem being spawned.