#[non_exhaustive]pub struct QueryAdmissionRequest { /* private fields */ }Expand description
Complete request-scoped metadata for one query-service admission attempt.
Implementations§
Source§impl QueryAdmissionRequest
impl QueryAdmissionRequest
Sourcepub fn new(attempt: AttemptAdmissionBinding) -> Self
pub fn new(attempt: AttemptAdmissionBinding) -> Self
Creates the admission request of one execution attempt, with no explicit capability requirement.
The binding is the request’s only observation and cleanup attachment.
crate::attempt::AttemptOwner mints it as one unit, so a request
cannot pair one attempt’s observation with another attempt’s cleanup.
Sourcepub fn with_query_cap_bytes(self, query_cap_bytes: u64) -> Self
pub fn with_query_cap_bytes(self, query_cap_bytes: u64) -> Self
Requests an exact immutable query cap. Admission never clamps it.
Sourcepub fn with_query_plan_capability_evidence(
self,
evidence: AttemptCapabilityEvidence,
) -> Self
pub fn with_query_plan_capability_evidence( self, evidence: AttemptCapabilityEvidence, ) -> Self
Attaches an opaque evidence computed by capability-first planning.
A public request may prove required device capabilities and plan scope, but it cannot carry a model byte target into grant selection. The installed device profile therefore remains the sole authority for the immutable grant.
Sourcepub fn with_queue_deadline(self, queue_deadline: Instant) -> Self
pub fn with_queue_deadline(self, queue_deadline: Instant) -> Self
Sets an attempt-bound queue deadline.
Sourcepub fn with_execution_cancellation(
self,
execution_cancellation: ExecutionCancellation,
) -> Self
pub fn with_execution_cancellation( self, execution_cancellation: ExecutionCancellation, ) -> Self
Carries the attempt-wide cancellation token into admission.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for QueryAdmissionRequest
impl !UnwindSafe for QueryAdmissionRequest
impl Freeze for QueryAdmissionRequest
impl Send for QueryAdmissionRequest
impl Sync for QueryAdmissionRequest
impl Unpin for QueryAdmissionRequest
impl UnsafeUnpin for QueryAdmissionRequest
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
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> ⓘ
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> ⓘ
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