pub struct Modules { /* private fields */ }Expand description
Configuration and initialization registry for container kernel modules.
Implementations§
Source§impl Modules
impl Modules
Sourcepub fn set_framebuffer_config(
&mut self,
enable_visual_debugging: bool,
initial_view_id_annotation: String,
)
pub fn set_framebuffer_config( &mut self, enable_visual_debugging: bool, initial_view_id_annotation: String, )
Sets container-level visual debugging and view annotation options used when the
framebuffer module is initialized.
Sourcepub fn add_spec(&mut self, spec: &str) -> Result<(), Error>
pub fn add_spec(&mut self, spec: &str) -> Result<(), Error>
Parses and registers a single module specification string ("<module> [args...]" or
"-<module>").
Sourcepub fn enable(&mut self, module: &str)
pub fn enable(&mut self, module: &str)
Enables module with no arguments, preserving any arguments or explicit disablement already
configured for module.
Sourcepub fn add_with_args(&mut self, module: &str, args: Vec<String>)
pub fn add_with_args(&mut self, module: &str, args: Vec<String>)
Enables module with args unless module has been explicitly disabled.
If args is empty and module is already enabled, any existing arguments configured for
module are preserved so that bare <module> entries (for example from an included
manifest shard) do not overwrite explicit module arguments.
Sourcepub fn is_enabled(&self, module: &str) -> bool
pub fn is_enabled(&self, module: &str) -> bool
Returns whether module is enabled.
Sourcepub fn args(&self, module: &str) -> Option<&[String]>
pub fn args(&self, module: &str) -> Option<&[String]>
Returns the normalized arguments configured for module, if enabled.
Sourcepub fn validate(&self) -> Result<(), Error>
pub fn validate(&self) -> Result<(), Error>
Validates all configured module names, module arguments, and cross-module constraints.
Sourcepub fn extra_cmdline_params(&self) -> Result<Option<BString>, Error>
pub fn extra_cmdline_params(&self) -> Result<Option<BString>, Error>
Returns any extra kernel command-line parameters contributed by enabled modules.
Sourcepub fn record_inspect(&self, parent_node: &Node)
pub fn record_inspect(&self, parent_node: &Node)
Records the enabled modules and their arguments under a "modules" child Inspect node.
Trait Implementations§
impl Eq for Modules
impl StructuralPartialEq for Modules
Auto Trait Implementations§
impl Freeze for Modules
impl RefUnwindSafe for Modules
impl Send for Modules
impl Sync for Modules
impl Unpin for Modules
impl UnsafeUnpin for Modules
impl UnwindSafe for Modules
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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