pub struct TaskProgress {
    pub task_id: TaskId,
    pub event_time: Option<u32>,
    pub message: String,
    pub total: Option<u32>,
    pub progress: Option<u32>,
    pub unit: String,
    pub data_kind: TaskDataKind,
    pub data: Value,
}
Expand description

After a taskStart and before taskFinish for a taskId, the server may send any number of progress notifications.

Fields

task_id: TaskId

Unique id of the task with optional reference to parent task id

event_time: Option<u32>

Timestamp of when the progress event was generated in milliseconds since Epoch.

message: String

Message describing the task progress.

  • Information about the state of the task at the time the event is sent.
total: Option<u32>

If known, total amount of work units in this task.

progress: Option<u32>

If known, completed amount of work units in this task.

unit: String

Name of a work unit. For example, “files” or “tests”. May be empty.

data_kind: TaskDataKind

Kind of data to expect in the data field. If this field is not set, the kind of data is not specified.

  • Kind names for specific tasks like compile, test, etc are specified in the protocol.
data: Value

Optional metadata about the task.

  • Objects for specific tasks like compile, test, etc are specified in the protocol.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.