pub struct Features { /* private fields */ }
Expand description
Features represents supported features of the runtime.
This structure is used to report the supported features of the runtime to runtime callers.
Implementations§
Source§impl Features
impl Features
Sourcepub fn oci_version_min_mut(&mut self) -> &mut String
pub fn oci_version_min_mut(&mut self) -> &mut String
The minimum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.0”.
Sourcepub fn oci_version_max_mut(&mut self) -> &mut String
pub fn oci_version_max_mut(&mut self) -> &mut String
The maximum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.2-dev”.
Sourcepub fn hooks_mut(&mut self) -> &mut Option<Vec<String>>
pub fn hooks_mut(&mut self) -> &mut Option<Vec<String>>
The list of the recognized hook names, e.g., “createRuntime”. “None” means “unknown”, not “no support for any hook”.
Sourcepub fn mount_options_mut(&mut self) -> &mut Option<Vec<String>>
pub fn mount_options_mut(&mut self) -> &mut Option<Vec<String>>
The list of the recognized mount options, e.g., “ro”. “None” means “unknown”, not “no support for any mount option”. This list does not contain filesystem-specific options passed to mount(2) syscall as (const void *).
Sourcepub fn linux_mut(&mut self) -> &mut Option<LinuxFeature>
pub fn linux_mut(&mut self) -> &mut Option<LinuxFeature>
Information specific to Linux
Sourcepub fn annotations_mut(&mut self) -> &mut Option<HashMap<String, String>>
pub fn annotations_mut(&mut self) -> &mut Option<HashMap<String, String>>
Implementation-specific annotation strings, such as the implementation version, and third-party extensions.
Sourcepub fn potentially_unsafe_config_annotations_mut(
&mut self,
) -> &mut Option<Vec<String>>
pub fn potentially_unsafe_config_annotations_mut( &mut self, ) -> &mut Option<Vec<String>>
The list of the potential unsafe annotations
that may appear in config.json
.
A value that ends with “.” is interpreted as a prefix of annotations.
Source§impl Features
impl Features
Sourcepub fn oci_version_min(&self) -> &String
pub fn oci_version_min(&self) -> &String
The minimum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.0”.
Sourcepub fn oci_version_max(&self) -> &String
pub fn oci_version_max(&self) -> &String
The maximum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.2-dev”.
Sourcepub fn hooks(&self) -> &Option<Vec<String>>
pub fn hooks(&self) -> &Option<Vec<String>>
The list of the recognized hook names, e.g., “createRuntime”. “None” means “unknown”, not “no support for any hook”.
Sourcepub fn mount_options(&self) -> &Option<Vec<String>>
pub fn mount_options(&self) -> &Option<Vec<String>>
The list of the recognized mount options, e.g., “ro”. “None” means “unknown”, not “no support for any mount option”. This list does not contain filesystem-specific options passed to mount(2) syscall as (const void *).
Sourcepub fn linux(&self) -> &Option<LinuxFeature>
pub fn linux(&self) -> &Option<LinuxFeature>
Information specific to Linux
Sourcepub fn annotations(&self) -> &Option<HashMap<String, String>>
pub fn annotations(&self) -> &Option<HashMap<String, String>>
Implementation-specific annotation strings, such as the implementation version, and third-party extensions.
Sourcepub fn potentially_unsafe_config_annotations(&self) -> &Option<Vec<String>>
pub fn potentially_unsafe_config_annotations(&self) -> &Option<Vec<String>>
The list of the potential unsafe annotations
that may appear in config.json
.
A value that ends with “.” is interpreted as a prefix of annotations.
Source§impl Features
impl Features
Sourcepub fn set_oci_version_min(&mut self, val: String) -> &mut Self
pub fn set_oci_version_min(&mut self, val: String) -> &mut Self
The minimum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.0”.
Sourcepub fn set_oci_version_max(&mut self, val: String) -> &mut Self
pub fn set_oci_version_max(&mut self, val: String) -> &mut Self
The maximum OCI Runtime Spec version recognized by the runtime, e.g., “1.0.2-dev”.
Sourcepub fn set_hooks(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_hooks(&mut self, val: Option<Vec<String>>) -> &mut Self
The list of the recognized hook names, e.g., “createRuntime”. “None” means “unknown”, not “no support for any hook”.
Sourcepub fn set_mount_options(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_mount_options(&mut self, val: Option<Vec<String>>) -> &mut Self
The list of the recognized mount options, e.g., “ro”. “None” means “unknown”, not “no support for any mount option”. This list does not contain filesystem-specific options passed to mount(2) syscall as (const void *).
Sourcepub fn set_linux(&mut self, val: Option<LinuxFeature>) -> &mut Self
pub fn set_linux(&mut self, val: Option<LinuxFeature>) -> &mut Self
Information specific to Linux
Sourcepub fn set_annotations(
&mut self,
val: Option<HashMap<String, String>>,
) -> &mut Self
pub fn set_annotations( &mut self, val: Option<HashMap<String, String>>, ) -> &mut Self
Implementation-specific annotation strings, such as the implementation version, and third-party extensions.
Sourcepub fn set_potentially_unsafe_config_annotations(
&mut self,
val: Option<Vec<String>>,
) -> &mut Self
pub fn set_potentially_unsafe_config_annotations( &mut self, val: Option<Vec<String>>, ) -> &mut Self
The list of the potential unsafe annotations
that may appear in config.json
.
A value that ends with “.” is interpreted as a prefix of annotations.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Features
impl<'de> Deserialize<'de> for Features
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>,
impl Eq for Features
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)