pub struct FsConfig {
pub tag: String,
pub source: String,
pub num_threads: usize,
pub writeback_cache: bool,
pub cache_profile: CacheProfile,
pub cache_timeout: u64,
pub negative_cache_ttl: u64,
}Expand description
Filesystem configuration.
Fields§
§tag: StringTag for virtiofs mount.
source: StringHost directory to share.
num_threads: usizeNumber of worker threads.
writeback_cache: boolEnable writeback caching.
cache_profile: CacheProfileCache profile controlling FUSE entry/attr timeouts.
Takes precedence over cache_timeout when set.
cache_timeout: u64Cache timeout for directory entries and attributes (seconds).
Used as a fallback when cache_profile is not explicitly set.
Higher values reduce FUSE round-trips but delay visibility of
host filesystem changes inside the guest.
negative_cache_ttl: u64Negative lookup cache TTL (seconds). Caches ENOENT results to avoid repeated stat() calls for non-existent paths.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FsConfig
impl RefUnwindSafe for FsConfig
impl Send for FsConfig
impl Sync for FsConfig
impl Unpin for FsConfig
impl UnsafeUnpin for FsConfig
impl UnwindSafe for FsConfig
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