pub struct Stats {
pub name: String,
pub subject: String,
pub requests: usize,
pub errors: usize,
pub processing_time: Duration,
pub average_processing_time: Duration,
pub last_error: Option<Error>,
pub data: Option<Value>,
pub queue_group: String,
}Available on crate feature
service only.Fields§
§name: StringEndpoint name.
subject: StringThe subject on which the endpoint is registered
requests: usizeNumber of requests handled.
errors: usizeNumber of errors occurred.
processing_time: DurationTotal processing time for all requests.
average_processing_time: DurationAverage processing time for request.
last_error: Option<Error>Last error that occurred.
data: Option<Value>Custom data added by crate::service::Config::stats_handler
queue_group: StringQueue group to which this endpoint is assigned to.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)