pub struct ContainerProgram {
pub mounts: Vec<String>,
pub features: Vec<String>,
pub modules: Vec<String>,
pub default_seclabel: Option<String>,
pub default_uid: StoreAsString<u32>,
pub default_ns_mount_options: Option<Vec<String>>,
pub stop_last_on_shutdown: Vec<String>,
/* private fields */
}Fields§
§mounts: Vec<String>The specifications for the file system mounts for this container.
features: Vec<String>The features enabled for this container.
modules: Vec<String>The modules enabled for this container.
default_seclabel: Option<String>The default seclabel that is applied to components that are instantiated in this container.
Components can override this by setting the seclabel field in their program block.
default_uid: StoreAsString<u32>The default uid that is applied to components that are instantiated in this container.
Components can override this by setting the uid field in their program block.
default_ns_mount_options: Option<Vec<String>>The default mount options to use when mounting directories from a component’s namespace.
Each string is expected to follow the format: “<namespace_path>:<mount_options>”.
stop_last_on_shutdown: Vec<String>Paths of executables whose processes are stopped only after all other processes except init have exited when the container shuts down, e.g. one that writes crash dumps for processes that crash during shutdown.
Trait Implementations§
Source§impl Debug for ContainerProgram
impl Debug for ContainerProgram
Source§impl Default for ContainerProgram
impl Default for ContainerProgram
Source§impl<'de> Deserialize<'de> for ContainerProgram
impl<'de> Deserialize<'de> for ContainerProgram
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>,
Auto Trait Implementations§
impl Freeze for ContainerProgram
impl RefUnwindSafe for ContainerProgram
impl Send for ContainerProgram
impl Sync for ContainerProgram
impl Unpin for ContainerProgram
impl UnsafeUnpin for ContainerProgram
impl UnwindSafe for ContainerProgram
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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