pub struct RuntimeStreamLeaseScope {
pub task_id: Option<RuntimeTaskId>,
pub source_worker_id: Option<RuntimeWorkerId>,
pub gpu_job_id: Option<RuntimeJobId>,
pub gpu_worker_id: Option<RuntimeWorkerId>,
/* private fields */
}Expand description
Explicit correlation available when a service-stream lease is acquired.
Callers compose this value at execution boundaries; stream acquisition does not consult thread-local or task-local ambient state.
Fields§
§task_id: Option<RuntimeTaskId>Associated compiled task, or None when acquisition has no task binding.
source_worker_id: Option<RuntimeWorkerId>Source worker requesting the stream, or None outside source work.
gpu_job_id: Option<RuntimeJobId>GPU executor job requesting the stream, or None outside a job.
gpu_worker_id: Option<RuntimeWorkerId>GPU executor worker requesting the stream, or None when unavailable.
Implementations§
Source§impl RuntimeStreamLeaseScope
impl RuntimeStreamLeaseScope
Sourcepub fn for_plan(plan_execution_id: PlanExecutionId) -> Self
pub fn for_plan(plan_execution_id: PlanExecutionId) -> Self
Creates a lease scope bound to one plan invocation with no worker or task correlation.
Trait Implementations§
Source§impl Clone for RuntimeStreamLeaseScope
impl Clone for RuntimeStreamLeaseScope
Source§impl Debug for RuntimeStreamLeaseScope
impl Debug for RuntimeStreamLeaseScope
Source§impl Default for RuntimeStreamLeaseScope
impl Default for RuntimeStreamLeaseScope
Source§impl<'de> Deserialize<'de> for RuntimeStreamLeaseScope
impl<'de> Deserialize<'de> for RuntimeStreamLeaseScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeStreamLeaseScope
Source§impl PartialEq for RuntimeStreamLeaseScope
impl PartialEq for RuntimeStreamLeaseScope
Source§impl Serialize for RuntimeStreamLeaseScope
impl Serialize for RuntimeStreamLeaseScope
impl StructuralPartialEq for RuntimeStreamLeaseScope
Auto Trait Implementations§
impl Freeze for RuntimeStreamLeaseScope
impl RefUnwindSafe for RuntimeStreamLeaseScope
impl Send for RuntimeStreamLeaseScope
impl Sync for RuntimeStreamLeaseScope
impl Unpin for RuntimeStreamLeaseScope
impl UnsafeUnpin for RuntimeStreamLeaseScope
impl UnwindSafe for RuntimeStreamLeaseScope
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more