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§
source§impl Clone for AsyncOpUpdate
impl Clone for AsyncOpUpdate
source§fn clone(&self) -> AsyncOpUpdate
fn clone(&self) -> AsyncOpUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AsyncOpUpdate
impl Debug for AsyncOpUpdate
source§impl Default for AsyncOpUpdate
impl Default for AsyncOpUpdate
source§impl Message for AsyncOpUpdate
impl Message for AsyncOpUpdate
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 AsyncOpUpdate
impl PartialEq for AsyncOpUpdate
impl StructuralPartialEq for AsyncOpUpdate
Auto Trait Implementations§
impl Freeze for AsyncOpUpdate
impl RefUnwindSafe for AsyncOpUpdate
impl Send for AsyncOpUpdate
impl Sync for AsyncOpUpdate
impl Unpin for AsyncOpUpdate
impl UnwindSafe for AsyncOpUpdate
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