Struct bsp_types::TaskProgress
source · [−]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
sourceimpl Clone for TaskProgress
impl Clone for TaskProgress
sourcefn clone(&self) -> TaskProgress
fn clone(&self) -> TaskProgress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TaskProgress
impl Debug for TaskProgress
sourceimpl Default for TaskProgress
impl Default for TaskProgress
sourcefn default() -> TaskProgress
fn default() -> TaskProgress
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TaskProgress where
TaskProgress: Default,
impl<'de> Deserialize<'de> for TaskProgress where
TaskProgress: Default,
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
sourceimpl Serialize for TaskProgress
impl Serialize for TaskProgress
Auto Trait Implementations
impl RefUnwindSafe for TaskProgress
impl Send for TaskProgress
impl Sync for TaskProgress
impl Unpin for TaskProgress
impl UnwindSafe for TaskProgress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more