Enum Event
pub enum Event {
Show 13 variants
TaskCreated {
task_id: i32,
},
TaskStarting {
task_id: i32,
},
TaskCompleted {
task_id: i32,
},
TaskFailed {
task_id: i32,
},
TaskCanceled {
task_id: i32,
},
PluginStarted {
plugin_id: i32,
},
PluginStopped {
plugin_id: i32,
},
PluginResultAvailable {
source: String,
result_name: String,
},
SampleStarted {
sample_id: i32,
},
SampleStopped {
sample_id: i32,
},
SampleResultProduced {
sample_id: i32,
},
DaemonShutdown,
ConfigReloaded,
}Expand description
A flat enumeration of all system-wide events.
Each variant carries its relevant data inline.
Variants§
TaskCreated
A task has been created and queued.
TaskStarting
A task is about to begin processing.
TaskCompleted
A task has finished processing.
TaskFailed
A task has failed processing.
TaskCanceled
A task has been canceled (e.g. due to worker shutdown).
PluginStarted
A plugin has started.
PluginStopped
A plugin has stopped.
PluginResultAvailable
A plugin has produced a result. This is a lightweight signal only - actual result data is accessed lazily via the result pub/sub channel through the macro-generated handler’s event wrapper.
SampleStarted
A sample has started.
SampleStopped
A sample has stopped.
SampleResultProduced
A sample has produced a result.
DaemonShutdown
The daemon is shutting down.
ConfigReloaded
Configuration has been reloaded.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].