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: TaskIdUnique 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: StringMessage 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: StringName of a work unit. For example, “files” or “tests”. May be empty.
data_kind: TaskDataKindKind 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: ValueOptional metadata about the task.
- Objects for specific tasks like compile, test, etc are specified in the protocol.
Trait Implementations§
Source§impl Clone for TaskProgress
impl Clone for TaskProgress
Source§fn clone(&self) -> TaskProgress
fn clone(&self) -> TaskProgress
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 TaskProgress
impl Debug for TaskProgress
Source§impl Default for TaskProgress
impl Default for TaskProgress
Source§fn default() -> TaskProgress
fn default() -> TaskProgress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskProgresswhere
TaskProgress: Default,
impl<'de> Deserialize<'de> for TaskProgresswhere
TaskProgress: Default,
Source§fn 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
Auto Trait Implementations§
impl Freeze for TaskProgress
impl RefUnwindSafe for TaskProgress
impl Send for TaskProgress
impl Sync for TaskProgress
impl Unpin for TaskProgress
impl UnwindSafe for TaskProgress
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