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

Fields

§name: &'static str

Name of the task to spawn which be shown in jaeger and tracing logs.

§subsystem: Option<&'static str>

Subsystem of the task to spawn which be shown in jaeger and tracing logs.

§s: BoxFuture<'static, ()>

The future to execute.

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.

§

SpawnBlockingJob

Fields

§name: &'static str

Name of the task to spawn which be shown in jaeger and tracing logs.

§subsystem: Option<&'static str>

Subsystem of the task to spawn which be shown in jaeger and tracing logs.

§s: BoxFuture<'static, ()>

The future to execute.

Same as SpawnJob but for blocking tasks to be executed on a dedicated thread pool.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more