pub struct ReadContext {
pub timeout_ms: u64,
pub cancel: CancelToken,
}Expand description
The effective read budget and a cooperative cancellation request.
The cache’s own deadline remains authoritative; adapters may use the token to stop waiting, but a dispatched command may still execute.
Fields§
§timeout_ms: u64The resolved read budget in milliseconds; the cache stops waiting and cancels the token once it elapses.
cancel: CancelTokenCancelled by the cache when the budget elapses; adapters may stop waiting on it.
Trait Implementations§
Source§impl Clone for ReadContext
impl Clone for ReadContext
Source§fn clone(&self) -> ReadContext
fn clone(&self) -> ReadContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for ReadContext
impl !UnwindSafe for ReadContext
impl Freeze for ReadContext
impl Send for ReadContext
impl Sync for ReadContext
impl Unpin for ReadContext
impl UnsafeUnpin for ReadContext
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