Struct console_api::tasks::TaskUpdate
source · [−]pub struct TaskUpdate {
pub new_tasks: Vec<Task>,
pub stats_update: HashMap<u64, Stats>,
pub dropped_events: u64,
}
Expand description
A task state update.
Each TaskUpdate
contains any task data that has changed since the last
update. This includes:
- any new tasks that were spawned since the last update
- the current stats for any task whose stats changed since the last update
Fields
new_tasks: Vec<Task>
A list of new tasks that were spawned since the last TaskUpdate
was
sent.
If this is empty, no new tasks were spawned.
stats_update: HashMap<u64, Stats>
Any task stats that have changed since the last update.
This is a map of task IDs (64-bit unsigned integers) to task stats. If a
task’s ID is not included in this map, then its stats have not changed
since the last TaskUpdate
in which they were present. If a task’s ID
is included in this map, the corresponding value represents a complete
snapshot of that task’s stats at in the current time window.
dropped_events: u64
A count of how many task events (e.g. polls, spawns, etc) were not recorded because the application’s event buffer was at capacity.
If everything is working normally, this should be 0. If it is greater than 0, that may indicate that some data is missing from this update, and it may be necessary to increase the number of events buffered by the application to ensure that data loss is avoided.
If the application’s instrumentation ensures reliable delivery of events, this will always be 0.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TaskUpdate
impl Send for TaskUpdate
impl Sync for TaskUpdate
impl Unpin for TaskUpdate
impl UnwindSafe for TaskUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more