pub struct RequestReadDeadline { /* private fields */ }Expand description
One absolute request deadline represented on async and blocking clocks.
Tokio’s instant is authoritative for async timeout selection, including paused-clock tests. The wall instant lets blocking backends enforce the same non-renewing deadline without depending on Tokio’s runtime clock.
Implementations§
Source§impl RequestReadDeadline
impl RequestReadDeadline
Sourcepub fn async_at(self) -> Instant
pub fn async_at(self) -> Instant
Tokio-clock instant used by request coordinators and timeout selection.
Sourcepub fn blocking_at(self) -> WallInstant
pub fn blocking_at(self) -> WallInstant
Wall-clock instant used by blocking backend cancellation checks.
Trait Implementations§
Source§impl Clone for RequestReadDeadline
impl Clone for RequestReadDeadline
impl Copy for RequestReadDeadline
Auto Trait Implementations§
impl Freeze for RequestReadDeadline
impl RefUnwindSafe for RequestReadDeadline
impl Send for RequestReadDeadline
impl Sync for RequestReadDeadline
impl Unpin for RequestReadDeadline
impl UnsafeUnpin for RequestReadDeadline
impl UnwindSafe for RequestReadDeadline
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