pub struct AdapterLoopStats {
pub ingress_messages: u64,
pub egress_messages: u64,
pub ingress: AdapterRuntimeStatus,
pub egress: AdapterRuntimeStatus,
}Expand description
Summary stats for one adapter loop run.
Fields§
§ingress_messages: u64Number of input messages read from ingress.
egress_messages: u64Number of output messages written to egress.
ingress: AdapterRuntimeStatusLast observed ingress adapter status.
egress: AdapterRuntimeStatusLast observed egress adapter status.
Implementations§
Source§impl AdapterLoopStats
impl AdapterLoopStats
Sourcepub fn snapshot_entries(&self) -> Vec<Value>
pub fn snapshot_entries(&self) -> Vec<Value>
Return the snapshot-ready adapter status entries for this loop.
Sourcepub fn merge_into_snapshot(&self, snapshot: &mut Value)
pub fn merge_into_snapshot(&self, snapshot: &mut Value)
Merge adapter status into a snapshot payload under the adapters key.
Trait Implementations§
Source§impl Clone for AdapterLoopStats
impl Clone for AdapterLoopStats
Source§fn clone(&self) -> AdapterLoopStats
fn clone(&self) -> AdapterLoopStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdapterLoopStats
impl Debug for AdapterLoopStats
Source§impl PartialEq for AdapterLoopStats
impl PartialEq for AdapterLoopStats
impl Eq for AdapterLoopStats
impl StructuralPartialEq for AdapterLoopStats
Auto Trait Implementations§
impl Freeze for AdapterLoopStats
impl RefUnwindSafe for AdapterLoopStats
impl Send for AdapterLoopStats
impl Sync for AdapterLoopStats
impl Unpin for AdapterLoopStats
impl UnwindSafe for AdapterLoopStats
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.