Enum orchestra::ToOrchestra
source · pub enum ToOrchestra {
SpawnJob {
name: &'static str,
subsystem: Option<&'static str>,
s: BoxFuture<'static, ()>,
},
SpawnBlockingJob {
name: &'static str,
subsystem: Option<&'static str>,
s: BoxFuture<'static, ()>,
},
}
Expand description
A type of messages that are sent from a Subsystem
to the declared orchestra.
Used to launch jobs.
Variants§
SpawnJob
A message that wraps something the Subsystem
is desiring to
spawn on the orchestra and a oneshot::Sender
to signal the result
of the spawn.
Fields
SpawnBlockingJob
Same as SpawnJob
but for blocking tasks to be executed on a
dedicated thread pool.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToOrchestra
impl !RefUnwindSafe for ToOrchestra
impl Send for ToOrchestra
impl !Sync for ToOrchestra
impl Unpin for ToOrchestra
impl !UnwindSafe for ToOrchestra
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