Enum xio_webapi::JobEvent[][src]

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,
    },
}

An enum representing events that can occur during job execution.

Variants

Execution of a job has started.

Fields of Started

The job identifier string.

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

The number of milliseconds since the job started.

A data row was recorded.

Fields of Data

The tag of the data.

The data values.

The values are sorted in the same order as the tags field by the JobEvent::Started variant.

The number of milliseconds since the job started.

The job execution has reached a new position.

Fields of Position

The command position index.

The caption string of the current position.

The number of milliseconds since the job started.

The currently running job has stopped.

Fields of Stopped

The details about why the job has stopped.

The number of milliseconds since the job started.

Trait Implementations

impl Clone for JobEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for JobEvent
[src]

Formats the value using the given formatter. Read more

impl PartialEq for JobEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for JobEvent
[src]

Auto Trait Implementations

impl Send for JobEvent

impl Sync for JobEvent