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§
source§impl Clone for TaskUpdate
impl Clone for TaskUpdate
source§fn clone(&self) -> TaskUpdate
fn clone(&self) -> TaskUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskUpdate
impl Debug for TaskUpdate
source§impl Default for TaskUpdate
impl Default for TaskUpdate
source§impl Message for TaskUpdate
impl Message for TaskUpdate
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TaskUpdate
impl PartialEq for TaskUpdate
impl StructuralPartialEq for TaskUpdate
Auto Trait Implementations§
impl Freeze for TaskUpdate
impl RefUnwindSafe for TaskUpdate
impl Send for TaskUpdate
impl Sync for TaskUpdate
impl Unpin for TaskUpdate
impl UnwindSafe for TaskUpdate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request