pub struct QueryExecutionTracker { /* private fields */ }Implementations§
Source§impl QueryExecutionTracker
impl QueryExecutionTracker
pub fn new( owner: &QueryExecutionOwner, query_guard: QueryExecutionGuard, deadline: Instant, timeout_seconds: u64, ) -> Self
pub fn deadline(&self) -> Instant
pub fn timeout_seconds(&self) -> u64
pub fn status(&self) -> QueryExecutionStatus
pub fn is_owned_by(&self, owner: &QueryExecutionOwner) -> bool
pub fn mark_admitted(&self, owner: &QueryExecutionOwner) -> bool
pub fn claim_planning(&self, owner: &QueryExecutionOwner) -> bool
pub fn mark_planned(&self, owner: &QueryExecutionOwner) -> bool
pub fn claim_execution(&self, owner: &QueryExecutionOwner) -> bool
pub fn mark_running(&self, owner: &QueryExecutionOwner) -> bool
pub fn handoff_deadline(&self, owner: &QueryExecutionOwner)
pub fn finish(&self, owner: &QueryExecutionOwner)
pub fn expire(&self, owner: &QueryExecutionOwner)
Trait Implementations§
Source§impl Clone for QueryExecutionTracker
impl Clone for QueryExecutionTracker
Source§fn clone(&self) -> QueryExecutionTracker
fn clone(&self) -> QueryExecutionTracker
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 QueryExecutionTracker
impl !UnwindSafe for QueryExecutionTracker
impl Freeze for QueryExecutionTracker
impl Send for QueryExecutionTracker
impl Sync for QueryExecutionTracker
impl Unpin for QueryExecutionTracker
impl UnsafeUnpin for QueryExecutionTracker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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::RequestCreates a shared type from an unshared type.