pub enum FsPerms {
ReadOnly,
ReadWrite,
}Expand description
Permission bits for operating on filesystem, specified per preopen, as enforced by wasmtime-wasi.
Filesystems can deny all mutation operations (read-only) or permit mutations (read-write).
Read-only permissions allow reading the contents of any file or directory reachable under the preopen, as well as reading any file metadata. Changing, appending, or truncating files is not permitted. Creating or deleting files, directories, symbolic links, and hard links are not permitted.
Read-write permissions include changing the contents of any reachable file, creating and deleting files, directories, symbolic links, and creating hard links, as well as mutating any file metadata.
These permissions are enforced by wasmtime-wasi. The host filesystem may enforce additional restrictions not covered by these.
Variants§
Implementations§
Trait Implementations§
impl Copy for FsPerms
impl Eq for FsPerms
impl StructuralPartialEq for FsPerms
Auto Trait Implementations§
impl Freeze for FsPerms
impl RefUnwindSafe for FsPerms
impl Send for FsPerms
impl Sync for FsPerms
impl Unpin for FsPerms
impl UnsafeUnpin for FsPerms
impl UnwindSafe for FsPerms
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
§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> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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