pub struct PrefetchOrigin {
pub session_id: String,
pub plan_id: String,
pub source: String,
pub candidate_rank: Option<u64>,
pub candidate_source: CandidateSource,
}Expand description
The plan that scheduled one speculative download. Kept with the task, so a later build cannot claim a download that was already in flight.
Fields§
§session_id: String§plan_id: StringPlanner-issued ID when available; empty for fallback and unscoped work.
source: Stringadvisory, fallback, or unscoped (startup or direct requests).
candidate_rank: Option<u64>Zero-based order in the request list, before local-hit, in-flight, and budget filtering. Planner requests validate their list first; direct IPC requests can include rejected keys. None for keys added by whole-remote warming.
candidate_source: CandidateSourceTrait Implementations§
Source§impl Clone for PrefetchOrigin
impl Clone for PrefetchOrigin
Source§fn clone(&self) -> PrefetchOrigin
fn clone(&self) -> PrefetchOrigin
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 moreSource§impl Debug for PrefetchOrigin
impl Debug for PrefetchOrigin
Source§impl Default for PrefetchOrigin
impl Default for PrefetchOrigin
Source§fn default() -> PrefetchOrigin
fn default() -> PrefetchOrigin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrefetchOrigin
impl<'de> Deserialize<'de> for PrefetchOrigin
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 PrefetchOrigin
Source§impl PartialEq for PrefetchOrigin
impl PartialEq for PrefetchOrigin
Source§impl Serialize for PrefetchOrigin
impl Serialize for PrefetchOrigin
impl StructuralPartialEq for PrefetchOrigin
Auto Trait Implementations§
impl Freeze for PrefetchOrigin
impl RefUnwindSafe for PrefetchOrigin
impl Send for PrefetchOrigin
impl Sync for PrefetchOrigin
impl Unpin for PrefetchOrigin
impl UnsafeUnpin for PrefetchOrigin
impl UnwindSafe for PrefetchOrigin
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