pub enum CacheProfile {
Static,
Dynamic,
Custom {
entry_timeout_secs: u64,
attr_timeout_secs: u64,
},
}Expand description
Cache profile for a VirtioFS share.
Controls the FUSE entry and attribute cache timeouts reported to the guest kernel. Higher values reduce FUSE round-trips at the cost of delayed visibility of host filesystem changes.
Variants§
Static
Static content (runtime binaries, container images). Entry/attr timeout: 300s. Aggressive caching.
Dynamic
Dynamic content (user source files). Entry/attr timeout: 1s. Minimal caching.
Custom
Custom timeout values.
Implementations§
Source§impl CacheProfile
impl CacheProfile
Sourcepub fn entry_timeout(&self) -> Duration
pub fn entry_timeout(&self) -> Duration
Returns the entry timeout for FUSE responses.
Sourcepub fn attr_timeout(&self) -> Duration
pub fn attr_timeout(&self) -> Duration
Returns the attr timeout for FUSE responses.
Trait Implementations§
Source§impl Clone for CacheProfile
impl Clone for CacheProfile
Source§fn clone(&self) -> CacheProfile
fn clone(&self) -> CacheProfile
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 CacheProfile
impl RefUnwindSafe for CacheProfile
impl Send for CacheProfile
impl Sync for CacheProfile
impl Unpin for CacheProfile
impl UnsafeUnpin for CacheProfile
impl UnwindSafe for CacheProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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