pub struct QueryExecutionDeadline { /* private fields */ }Expand description
One absolute monotonic deadline shared by every stage of one query terminal.
Capture this value at the public terminal entry, before semantic construction or allocation. Passing the same token through direct or remote execution and projected materialization prevents any stage from restarting the caller’s timeout.
Implementations§
Source§impl QueryExecutionDeadline
impl QueryExecutionDeadline
Sourcepub fn from_timeout_milliseconds(
timeout_milliseconds: u64,
) -> QueryExecutionDeadline
pub fn from_timeout_milliseconds( timeout_milliseconds: u64, ) -> QueryExecutionDeadline
Capture one absolute deadline from a timeout, clamped to the common generated-query hard ceiling.
Sourcepub fn for_limits(
limits: QueryExecutionResourceLimits,
) -> QueryExecutionDeadline
pub fn for_limits( limits: QueryExecutionResourceLimits, ) -> QueryExecutionDeadline
Capture the deadline prescribed by one common resource policy.
Sourcepub fn is_expired(self) -> bool
pub fn is_expired(self) -> bool
Return whether the absolute deadline has elapsed.
Trait Implementations§
Source§impl Clone for QueryExecutionDeadline
impl Clone for QueryExecutionDeadline
Source§fn clone(&self) -> QueryExecutionDeadline
fn clone(&self) -> QueryExecutionDeadline
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 moreimpl Copy for QueryExecutionDeadline
Auto Trait Implementations§
impl Freeze for QueryExecutionDeadline
impl RefUnwindSafe for QueryExecutionDeadline
impl Send for QueryExecutionDeadline
impl Sync for QueryExecutionDeadline
impl Unpin for QueryExecutionDeadline
impl UnsafeUnpin for QueryExecutionDeadline
impl UnwindSafe for QueryExecutionDeadline
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request