Struct console_api::async_ops::AsyncOpUpdate
source · [−]pub struct AsyncOpUpdate {
pub new_async_ops: Vec<AsyncOp>,
pub stats_update: HashMap<u64, Stats>,
pub dropped_events: u64,
}
Expand description
An AsyncOp
state update.
This includes a list of any new async ops, and updates to the associated statistics for any async ops that have changed since the last update.
Fields
new_async_ops: Vec<AsyncOp>
A list of new async operations that were created since the last AsyncOpUpdate
was sent. Note that the fact that an async operation has been created
does not mean that is has been polled or is being polled. This information
is reflected in the Stats
of the operation.
stats_update: HashMap<u64, Stats>
Any async op stats that have changed since the last update.
dropped_events: u64
A count of how many async op events (e.g. polls, creation, 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 AsyncOpUpdate
impl Send for AsyncOpUpdate
impl Sync for AsyncOpUpdate
impl Unpin for AsyncOpUpdate
impl UnwindSafe for AsyncOpUpdate
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