pub struct MiddlewareStats {
pub name: String,
pub executions: u64,
pub total_time: Duration,
pub avg_time: Duration,
pub last_execution: Option<Instant>,
}
Expand description
Execution statistics for middleware
Fields§
§name: String
§executions: u64
§total_time: Duration
§avg_time: Duration
§last_execution: Option<Instant>
Implementations§
Trait Implementations§
Source§impl Clone for MiddlewareStats
impl Clone for MiddlewareStats
Source§fn clone(&self) -> MiddlewareStats
fn clone(&self) -> MiddlewareStats
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 moreAuto Trait Implementations§
impl Freeze for MiddlewareStats
impl RefUnwindSafe for MiddlewareStats
impl Send for MiddlewareStats
impl Sync for MiddlewareStats
impl Unpin for MiddlewareStats
impl UnwindSafe for MiddlewareStats
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