pub struct Clock { /* private fields */ }Expand description
When an inference request arrived, when its body was in and when its response first
went out: the usage record’s timings (crate::usage_record::Timings) count from
accepted. One per HTTP inference request, shared by its request body, its response
body and the records of its attempts. Cost: one allocation per inference request.
Implementations§
Source§impl Clock
impl Clock
Sourcepub fn accepted(&self) -> Instant
pub fn accepted(&self) -> Instant
The server accepted the request: its head was read and routing began.
Sourcepub fn body_received(&self) -> Option<(Instant, u64)>
pub fn body_received(&self) -> Option<(Instant, u64)>
The request body was read to its end, and its size as received.
Sourcepub fn response_started(&self) -> Option<Instant>
pub fn response_started(&self) -> Option<Instant>
The first response bytes were handed to the connection for the client. A keep-alive the server sent while waiting counts.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Clock
impl Forget for Clock
impl Move for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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