#[non_exhaustive]pub enum JobEventKind {
Show 15 variants
Started,
Progress,
ItemFailed,
Paused,
Resumed,
Cancelling,
Failed,
Finished,
Cancelled,
Orphaned,
Adopted,
Log,
CommandDispatched,
CommandDone,
CommandFailed,
}Expand description
What a job event says: the kind the host gives when it publishes the
event on pop.job.event (egui-pop-api’s JobEvents). The model folds
events by this kind, never by a journal entry’s name; name
(job.started…) is only the label the event is journaled under.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Started
A job started (or started again).
Progress
A job moved on.
ItemFailed
One item failed; the job goes on.
Paused
Resumed
Cancelling
Cancelling was accepted; the job winds down.
Failed
Finished
Cancelled
Orphaned
The job’s plugin is disconnected and the job goes on (said by egui-pop, not by the host).
Adopted
The plugin of orphaned jobs is back (said by egui-pop).
Log
Lines of a job’s log.
CommandDispatched
A job command (job.cancel…) was dispatched (said by egui-pop).
CommandDone
A job command ran (said by egui-pop; its cause is the dispatch).
CommandFailed
A job command failed (said by egui-pop; its cause is the dispatch).
Implementations§
Source§impl JobEventKind
impl JobEventKind
Trait Implementations§
Source§impl Clone for JobEventKind
impl Clone for JobEventKind
Source§fn clone(&self) -> JobEventKind
fn clone(&self) -> JobEventKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JobEventKind
impl Debug for JobEventKind
Source§impl Hash for JobEventKind
impl Hash for JobEventKind
Source§impl Ord for JobEventKind
impl Ord for JobEventKind
Source§fn cmp(&self, other: &JobEventKind) -> Ordering
fn cmp(&self, other: &JobEventKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JobEventKind
impl PartialEq for JobEventKind
Source§impl PartialOrd for JobEventKind
impl PartialOrd for JobEventKind
Source§impl Serialize for JobEventKind
impl Serialize for JobEventKind
impl Copy for JobEventKind
impl Eq for JobEventKind
impl StructuralPartialEq for JobEventKind
Auto Trait Implementations§
impl Freeze for JobEventKind
impl RefUnwindSafe for JobEventKind
impl Send for JobEventKind
impl Sync for JobEventKind
impl Unpin for JobEventKind
impl UnsafeUnpin for JobEventKind
impl UnwindSafe for JobEventKind
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