pub struct RequestExecutedEvent { /* private fields */ }Expand description
Emitted when a server request execution is completed.
Implementations§
Source§impl RequestExecutedEvent
impl RequestExecutedEvent
pub fn new( request: Request, total: Duration, compute: Duration, success: bool, timestamp: DateTime, ) -> Self
pub fn request(&self) -> &Request
pub fn total(&self) -> &Duration
pub fn compute(&self) -> &Duration
pub fn success(&self) -> &bool
pub fn timestamp(&self) -> &DateTime
Trait Implementations§
Source§impl Clone for RequestExecutedEvent
impl Clone for RequestExecutedEvent
Source§impl Debug for RequestExecutedEvent
impl Debug for RequestExecutedEvent
Auto Trait Implementations§
impl Freeze for RequestExecutedEvent
impl RefUnwindSafe for RequestExecutedEvent
impl Send for RequestExecutedEvent
impl Sync for RequestExecutedEvent
impl Unpin for RequestExecutedEvent
impl UnsafeUnpin for RequestExecutedEvent
impl UnwindSafe for RequestExecutedEvent
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<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> 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 more