pub struct FilesystemMount {
pub kind: MountType,
pub guest: Option<String>,
pub host: Option<String>,
}Expand description
One entry in params.mounts of the wasi:filesystem capability.
Pure topology: it makes a host directory nameable at a guest path.
Authorization (which host paths, at which mode) stays in constraints
(FilesystemAllow); a mount carries no access mode.
Fields§
§kind: MountTypeMount kind. Defaults to bind.
guest: Option<String>Guest mount point (POSIX-absolute). Required for bind; root
defaults to “/” when omitted.
host: Option<String>Host directory (bind only; ~-expanded by the host). Required iff
bind, forbidden iff root.
Trait Implementations§
Source§impl Clone for FilesystemMount
impl Clone for FilesystemMount
Source§fn clone(&self) -> FilesystemMount
fn clone(&self) -> FilesystemMount
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 FilesystemMount
impl Debug for FilesystemMount
Source§impl<'de> Deserialize<'de> for FilesystemMount
impl<'de> Deserialize<'de> for FilesystemMount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FilesystemMount
impl RefUnwindSafe for FilesystemMount
impl Send for FilesystemMount
impl Sync for FilesystemMount
impl Unpin for FilesystemMount
impl UnsafeUnpin for FilesystemMount
impl UnwindSafe for FilesystemMount
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