Enum xio_webapi::JobEvent
source · pub enum JobEvent {
Started {
job: String,
tags: BTreeMap<String, Vec<String>>,
instant: u64,
},
Data {
tag: String,
values: Vec<DataValueDescriptive>,
instant: u64,
},
Position {
command: u16,
caption: String,
instant: u64,
},
Stopped {
details: JobStoppedReason,
instant: u64,
},
}
Expand description
An enum representing events that can occur during job execution.
Variants
Started
Fields
job: String
The job identifier string.
A definition of the tags and the field names for each tag.
instant: u64
The number of milliseconds since the job started.
Execution of a job has started.
Data
Fields
tag: String
The tag of the data.
values: Vec<DataValueDescriptive>
The data values.
The values are sorted in the same order as the tags
field
by the JobEvent::Started
variant.
instant: u64
The number of milliseconds since the job started.
A data row was recorded.
Position
Fields
command: u16
The command position index.
The caption string of the current position.
instant: u64
The number of milliseconds since the job started.
The job execution has reached a new position.
Stopped
Fields
details: JobStoppedReason
The details about why the job has stopped.
instant: u64
The number of milliseconds since the job started.
The currently running job has stopped.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for JobEvent
impl<'de> Deserialize<'de> for JobEvent
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobEvent
impl StructuralEq for JobEvent
impl StructuralPartialEq for JobEvent
Auto Trait Implementations
impl RefUnwindSafe for JobEvent
impl Send for JobEvent
impl Sync for JobEvent
impl Unpin for JobEvent
impl UnwindSafe for JobEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> PathLoad for Twhere
T: DeserializeOwned,
impl<T> PathLoad for Twhere
T: DeserializeOwned,
fn load_from_path<P>(path: P) -> Result<T, Error>where
P: AsRef<Path> + Debug,
fn load_from_path<P>(path: P) -> Result<T, Error>where
P: AsRef<Path> + Debug,
Load the data structure from a path.