#[non_exhaustive]pub struct NvmeOptions {
pub dir: PathBuf,
pub max_bytes: u64,
pub owner: Option<String>,
}Expand description
The local NVMe tier’s settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dir: PathBufDirectory the cache’s files live under (created if missing). It
serves one store: entries are named by object path and range, so a
directory shared with another store, or kept across a restart under
another one, could serve that store’s bytes. Set
owner and the directory records which store it
serves.
max_bytes: u64Maximum bytes held in this tier.
owner: Option<String>A name for the store this tier caches, the same in every process that
opens that store (a URL with its endpoint, say). With one, the tier
writes it to .itzma-cache-owner in dir and keeps to it: a
directory with no owner yet has its entries cleared first, since
nothing says whose they are, and a directory another owner claimed is
refused (CacheStore::new fails). None, the default, checks
nothing.
Implementations§
Source§impl NvmeOptions
impl NvmeOptions
Trait Implementations§
Source§impl Clone for NvmeOptions
impl Clone for NvmeOptions
Auto Trait Implementations§
impl Forget for NvmeOptions
impl Freeze for NvmeOptions
impl Move for NvmeOptions
impl RefUnwindSafe for NvmeOptions
impl Send for NvmeOptionswhere
RawVecInner: Send,
impl Sync for NvmeOptionswhere
RawVecInner: Sync,
impl Unpin for NvmeOptions
impl UnsafeUnpin for NvmeOptions
impl UnwindSafe for NvmeOptionswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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