[][src]Enum xio_webapi::JobEvent

pub enum JobEvent {
    Started {
        job: String,
        tags: IndexMap<String, Vec<String>>,
        instant: u64,
    },
    Data {
        tag: String,
        values: Vec<DataValueDescriptive>,
        instant: u64,
    },
    Position {
        command: u16,
        message: String,
        description: String,
        instant: u64,
    },
    Stopped {
        details: JobStoppedReason,
        instant: u64,
    },
}

An enum representing events that can occur during job execution.

Variants

Started

Execution of a job has started.

Fields of Started

job: String

The job identifier string.

tags: IndexMap<String, Vec<String>>

A definition of the tags and the field names for each tag.

instant: u64

The number of milliseconds since the job started.

Data

A data row was recorded.

Fields of Data

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.

Position

The job execution has reached a new position.

Fields of Position

command: u16

The command position index.

message: String

The message string of the current position.

description: String

The description string of the current position.

instant: u64

The number of milliseconds since the job started.

Stopped

The currently running job has stopped.

Fields of Stopped

details: JobStoppedReason

The details about why the job has stopped.

instant: u64

The number of milliseconds since the job started.

Methods

impl JobEvent[src]

pub fn instant(&self) -> u64[src]

Get the instant of the event (in milliseconds since job start).

pub fn instant_duration(&self) -> Duration[src]

Get the instant of the event (duration since job start).

Trait Implementations

impl Eq for JobEvent[src]

impl Clone for JobEvent[src]

impl PartialEq<JobEvent> for JobEvent[src]

impl Debug for JobEvent[src]

impl Serialize for JobEvent[src]

impl<'de> Deserialize<'de> for JobEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> PathLoad for T where
    T: DeserializeOwned