[][src]Struct opencontainers::runtime::config::Root

pub struct Root {
    pub path: PathBuf,
    pub readonly: Option<bool>,
}

Fields

path: PathBuf

Specifies the path to the root filesystem for the container.

  • On Windows, path MUST be a volume GUID path.
  • On POSIX platforms, path is either an absolute path or a relative path to the bundle. For example, with a bundle at /to/bundle and a root filesystem at /to/bundle/rootfs, the path value can be either /to/bundle/rootfs or rootfs. The value SHOULD be the conventional rootfs.
readonly: Option<bool>

If true then the root filesystem MUST be read-only inside the container, defaults to false.

On Windows, this field MUST be omitted or false.

Methods

impl Root[src]

pub fn readonly(&self) -> bool[src]

Trait Implementations

impl Debug for Root[src]

impl Serialize for Root[src]

impl<'de> Deserialize<'de> for Root[src]

Auto Trait Implementations

impl Send for Root

impl Sync for Root

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err