pub enum NamespaceAction {
Read,
Write,
Create,
Mount,
BindMount,
Unmount,
ResolveHandle,
}Expand description
The direct-Namespace-API operation a NamespaceAccessDecider is asked
to authorize.
This is the VFS-plane action surface — broader than the 9P translator’s
hyprstream_9p::Action because the direct API also mutates the namespace
itself (Mount/BindMount/Unmount), ops the wire translator never
dispatches. Mirrors Namespace’s convenience methods.
Variants§
Read
cat / read_one / ls — read-class.
Write
echo / ctl — write-class.
Create
create — new-object creation.
Mount
mount — install/replace a mount point (namespace mutation).
BindMount
bind_mount — union-bind a target (namespace mutation).
Unmount
unmount — remove a mount point (namespace mutation).
ResolveHandle
Extract raw mount targets from the namespace.
A returned crate::MountTarget can invoke the complete Mount
surface, including writes, without re-entering crate::Namespace.
This is therefore a privileged, write-capable action rather than a
read-only path lookup.
Trait Implementations§
Source§impl Clone for NamespaceAction
impl Clone for NamespaceAction
Source§fn clone(&self) -> NamespaceAction
fn clone(&self) -> NamespaceAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NamespaceAction
impl Debug for NamespaceAction
Source§impl Hash for NamespaceAction
impl Hash for NamespaceAction
Source§impl PartialEq for NamespaceAction
impl PartialEq for NamespaceAction
Source§fn eq(&self, other: &NamespaceAction) -> bool
fn eq(&self, other: &NamespaceAction) -> bool
self and other values to be equal, and is used by ==.impl Copy for NamespaceAction
impl Eq for NamespaceAction
impl StructuralPartialEq for NamespaceAction
Auto Trait Implementations§
impl Freeze for NamespaceAction
impl RefUnwindSafe for NamespaceAction
impl Send for NamespaceAction
impl Sync for NamespaceAction
impl Unpin for NamespaceAction
impl UnsafeUnpin for NamespaceAction
impl UnwindSafe for NamespaceAction
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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