pub struct PrefetchTarget {
pub key: String,
pub priority: PrefetchPriority,
pub coordinates: Option<(usize, usize, usize)>,
pub confidence: f64,
pub estimated_size: Option<usize>,
}Expand description
Prefetch target with priority and metadata
Fields§
§key: StringKey to prefetch
priority: PrefetchPriorityPriority level
coordinates: Option<(usize, usize, usize)>Expected coordinates (for spatial data)
confidence: f64Confidence score (0.0 - 1.0)
estimated_size: Option<usize>Estimated size in bytes
Implementations§
Source§impl PrefetchTarget
impl PrefetchTarget
Sourcepub fn new(key: String, priority: PrefetchPriority, confidence: f64) -> Self
pub fn new(key: String, priority: PrefetchPriority, confidence: f64) -> Self
Creates a new prefetch target
Sourcepub fn with_coordinates(self, x: usize, y: usize, z: usize) -> Self
pub fn with_coordinates(self, x: usize, y: usize, z: usize) -> Self
Sets coordinates for spatial data
Sourcepub fn with_estimated_size(self, size: usize) -> Self
pub fn with_estimated_size(self, size: usize) -> Self
Sets estimated size
Trait Implementations§
Source§impl Clone for PrefetchTarget
impl Clone for PrefetchTarget
Source§fn clone(&self) -> PrefetchTarget
fn clone(&self) -> PrefetchTarget
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 Freeze for PrefetchTarget
impl RefUnwindSafe for PrefetchTarget
impl Send for PrefetchTarget
impl Sync for PrefetchTarget
impl Unpin for PrefetchTarget
impl UnsafeUnpin for PrefetchTarget
impl UnwindSafe for PrefetchTarget
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