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
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>,
source§impl PartialEq for Features
impl PartialEq for Features
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)