pub enum PrefetchStrategy {
None,
ThumbnailsOnly,
MetadataAndMidRes,
Full,
}Expand description
Prefetch strategy based on hardware capabilities
Variants§
None
No prefetching - load on demand only
ThumbnailsOnly
Only prefetch thumbnails (256×256)
MetadataAndMidRes
Prefetch metadata and mid-resolution images (512×512)
Full
Full prefetching - load everything ahead of time
Implementations§
Source§impl PrefetchStrategy
impl PrefetchStrategy
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get display name for UI
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get description for UI
Trait Implementations§
Source§impl Clone for PrefetchStrategy
impl Clone for PrefetchStrategy
Source§fn clone(&self) -> PrefetchStrategy
fn clone(&self) -> PrefetchStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 PrefetchStrategy
impl Debug for PrefetchStrategy
Source§impl Default for PrefetchStrategy
impl Default for PrefetchStrategy
Source§fn default() -> PrefetchStrategy
fn default() -> PrefetchStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrefetchStrategy
impl<'de> Deserialize<'de> for PrefetchStrategy
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
Source§impl PartialEq for PrefetchStrategy
impl PartialEq for PrefetchStrategy
Source§impl Serialize for PrefetchStrategy
impl Serialize for PrefetchStrategy
impl Copy for PrefetchStrategy
impl Eq for PrefetchStrategy
impl StructuralPartialEq for PrefetchStrategy
Auto Trait Implementations§
impl Freeze for PrefetchStrategy
impl RefUnwindSafe for PrefetchStrategy
impl Send for PrefetchStrategy
impl Sync for PrefetchStrategy
impl Unpin for PrefetchStrategy
impl UnwindSafe for PrefetchStrategy
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