pub enum PrefetchPolicy {
None,
Fs,
Blob,
}Expand description
Filesystem data prefetch policy.
Variants§
None
Fs
Prefetch will be issued from Fs layer, which leverages inode/chunkinfo to prefetch data
from blob no matter where it resides(OSS/Localfs). Basically, it is willing to cache the
data into blobcache(if exists). It’s more nimble. With this policy applied, image builder
currently puts prefetch files’ data into a continuous region within blob which behaves very
similar to Blob policy.
Blob
Prefetch will be issued directly from backend/blob layer
Trait Implementations§
Source§impl Clone for PrefetchPolicy
impl Clone for PrefetchPolicy
Source§fn clone(&self) -> PrefetchPolicy
fn clone(&self) -> PrefetchPolicy
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 PrefetchPolicy
impl Debug for PrefetchPolicy
Source§impl Default for PrefetchPolicy
impl Default for PrefetchPolicy
Source§impl FromStr for PrefetchPolicy
impl FromStr for PrefetchPolicy
Source§impl PartialEq for PrefetchPolicy
impl PartialEq for PrefetchPolicy
impl Copy for PrefetchPolicy
impl StructuralPartialEq for PrefetchPolicy
Auto Trait Implementations§
impl Freeze for PrefetchPolicy
impl RefUnwindSafe for PrefetchPolicy
impl Send for PrefetchPolicy
impl Sync for PrefetchPolicy
impl Unpin for PrefetchPolicy
impl UnwindSafe for PrefetchPolicy
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