#[non_exhaustive]pub enum Access {
ReadOnly,
ReadWrite,
}Expand description
A mount’s grant, enforced by the Namespace on top of the backend’s own Caps::writable.
The grant belongs to the mount, not to the data behind it. ReadOnly means “nothing written through this mount
changes anything”; it does not make the host directory read-only. If the embedder also mounts the same directory, or
one inside it, read-write somewhere else, or another process writes it, what this mount reads changes. The Kit
enforces the grant per mount and the embedder chooses the host directories, so choose them to be disjoint. The one
overlap the Kit can see, the same directory mounted twice, is refused at build()
(InvalidInput(DuplicateRoot)); a directory mounted together with one of its ancestors or descendants is not
detected, because the Kit holds no host paths by design (see Backend::root_identity).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReadOnly
Reads and watches only; every write is PermissionDenied.
ReadWrite
Reads, watches and writes.
Trait Implementations§
impl Copy for Access
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Forget for Access
impl Freeze for Access
impl Move for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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