#[non_exhaustive]pub struct Caps {
pub writable: bool,
pub atomic_replace: bool,
pub exact_if_version: bool,
pub watch: WatchKind,
pub owner_mode: bool,
pub case_sensitive: bool,
pub strict_confinement: bool,
}Expand description
What a mount can and cannot do, and where it is weaker than it looks. A typed struct, not strings.
A capability that is false (or WatchKind::None) means the operation returns
NsErrorKind::Unsupported, and the conformance suite checks that it does.
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.writable: boolwrite is available at all.
atomic_replace: boolWriteOp::Replace is atomic (temp file plus rename, or a commit).
exact_if_version: boolif_version is exact (compare-and-swap). false means best effort: check, then act, with a window between.
Either way a stale version is detected when the change happened before the check.
watch: WatchKindHow watch is implemented.
owner_mode: boolStat::owner and Stat::mode are populated.
case_sensitive: boolTwo names differing only by case can address two entries on this backend. Informational: the portable grammar refuses to create a case-colliding sibling on every backend regardless.
strict_confinement: boolConfinement is as strict as the Kit claims everywhere: no symlink or reparse point followed, no hard-link alias
written, identity checks on handles. false means a known weaker platform (Windows HostDir), so the embedder
must not rely on the strong guarantee; the docs of the backend list what is missing.
Implementations§
Trait Implementations§
impl Copy for Caps
impl Eq for Caps
impl StructuralPartialEq for Caps
Auto Trait Implementations§
impl Forget for Caps
impl Freeze for Caps
impl Move for Caps
impl RefUnwindSafe for Caps
impl Send for Caps
impl Sync for Caps
impl Unpin for Caps
impl UnsafeUnpin for Caps
impl UnwindSafe for Caps
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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