pub struct FilesystemSection {
pub read: Vec<PathBuf>,
pub write: Vec<PathBuf>,
pub deny: Vec<PathBuf>,
pub chroot: Option<PathBuf>,
pub mount: Vec<String>,
pub on_exit: Option<String>,
pub on_error: Option<String>,
}Fields§
§read: Vec<PathBuf>§write: Vec<PathBuf>§deny: Vec<PathBuf>§chroot: Option<PathBuf>§mount: Vec<String>Each entry has the form "VIRTUAL:HOST", matching --fs-mount syntax.
on_exit: Option<String>One of "commit", "abort", "keep". Maps to Sandbox::on_exit.
on_error: Option<String>One of "commit", "abort", "keep". Maps to Sandbox::on_error.
Trait Implementations§
Source§impl Clone for FilesystemSection
impl Clone for FilesystemSection
Source§fn clone(&self) -> FilesystemSection
fn clone(&self) -> FilesystemSection
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 FilesystemSection
impl Debug for FilesystemSection
Source§impl Default for FilesystemSection
impl Default for FilesystemSection
Source§fn default() -> FilesystemSection
fn default() -> FilesystemSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilesystemSectionwhere
FilesystemSection: Default,
impl<'de> Deserialize<'de> for FilesystemSectionwhere
FilesystemSection: Default,
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
Source§impl PartialEq for FilesystemSection
impl PartialEq for FilesystemSection
Source§fn eq(&self, other: &FilesystemSection) -> bool
fn eq(&self, other: &FilesystemSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FilesystemSection
Auto Trait Implementations§
impl Freeze for FilesystemSection
impl RefUnwindSafe for FilesystemSection
impl Send for FilesystemSection
impl Sync for FilesystemSection
impl Unpin for FilesystemSection
impl UnsafeUnpin for FilesystemSection
impl UnwindSafe for FilesystemSection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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