#[repr(u8)]pub enum MetadataOp {
Stat = 0,
ReadLink = 1,
MkDir = 2,
RmDir = 3,
Unlink = 4,
HardLink = 5,
Symlink = 6,
Chmod = 7,
OpenCreate = 8,
}Expand description
Which metadata syscall a permit / cap belongs to.
Mirrors congestion::MetadataOp variant-for-variant. Each crate
indexes its own flat array using its own enum, so the per-crate
discriminants drive routing inside that crate; the cross-crate
translation goes through name-based bridge functions in
common::walk. Adding a variant here without a matching one in
congestion (or vice versa) is caught at compile time by the
exhaustive matches in those bridges.
Variants§
Stat = 0
ReadLink = 1
MkDir = 2
RmDir = 3
Unlink = 4
HardLink = 5
Symlink = 6
Chmod = 7
OpenCreate = 8
Implementations§
Trait Implementations§
Source§impl Clone for MetadataOp
impl Clone for MetadataOp
Source§fn clone(&self) -> MetadataOp
fn clone(&self) -> MetadataOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataOp
impl Debug for MetadataOp
Source§impl Hash for MetadataOp
impl Hash for MetadataOp
Source§impl PartialEq for MetadataOp
impl PartialEq for MetadataOp
Source§fn eq(&self, other: &MetadataOp) -> bool
fn eq(&self, other: &MetadataOp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MetadataOp
impl Eq for MetadataOp
impl StructuralPartialEq for MetadataOp
Auto Trait Implementations§
impl Freeze for MetadataOp
impl RefUnwindSafe for MetadataOp
impl Send for MetadataOp
impl Sync for MetadataOp
impl Unpin for MetadataOp
impl UnsafeUnpin for MetadataOp
impl UnwindSafe for MetadataOp
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