pub struct RuntimeConfig {Show 19 fields
pub list_children_batch_size: usize,
pub security_policy: Arc<SecurityPolicy>,
pub debug: bool,
pub trace_provider: TraceProvider,
pub enable_introspection: bool,
pub use_builtin_process_launcher: bool,
pub maintain_utc_clock: bool,
pub num_threads: u8,
pub namespace_capabilities: Vec<CapabilityDecl>,
pub builtin_capabilities: Vec<CapabilityDecl>,
pub root_component_url: Option<Url>,
pub component_id_index_path: Option<Utf8PathBuf>,
pub log_destination: LogDestination,
pub log_all_events: bool,
pub builtin_boot_resolver: BuiltinBootResolver,
pub realm_builder_resolver_and_runner: RealmBuilderResolverAndRunner,
pub abi_revision_policy: AbiRevisionPolicy,
pub vmex_source: VmexSource,
pub health_check: HealthCheck,
}Expand description
Runtime configuration options. This configuration intended to be “global”, in that the same configuration is applied throughout a given running instance of component_manager.
Fields§
§list_children_batch_size: usizeHow many children, maximum, are returned by a call to ChildIterator.next().
security_policy: Arc<SecurityPolicy>Security policy configuration.
debug: boolIf true, component manager will be in debug mode. In this mode, component manager
provides the EventSource protocol and exposes this protocol. The root component
must be manually started using the LifecycleController protocol in the hub.
This is done so that an external component (say an integration test) can subscribe to events before the root component has started.
trace_provider: TraceProviderWhere to look for the trace provider: normal Namespace, or internal RootExposed. This is ignored if tracing is not enabled as a feature.
enable_introspection: boolEnables Component Manager’s introspection APIs (RealmQuery, RealmExplorer, RouteValidator, LifecycleController, etc.) for use by components.
use_builtin_process_launcher: boolIf true, component_manager will serve an instance of fuchsia.process.Launcher and use this launcher for the built-in ELF component runner. The root component can additionally use and/or offer this service using ‘/builtin/fuchsia.process.Launcher’ from realm.
maintain_utc_clock: boolIf true, component_manager will maintain a UTC kernel clock and vend write handles through
an instance of fuchsia.time.Maintenance. This flag should only be used with the top-level
component_manager.
num_threads: u8§namespace_capabilities: Vec<CapabilityDecl>The list of capabilities offered from component manager’s namespace.
builtin_capabilities: Vec<CapabilityDecl>The list of capabilities offered from component manager as built-in capabilities.
root_component_url: Option<Url>URL of the root component to launch. This field is used if no URL is passed to component manager. If value is passed in both places, then an error is raised.
component_id_index_path: Option<Utf8PathBuf>Path to the component ID index, parsed from
fuchsia.component.internal.RuntimeConfig.component_id_index_path.
log_destination: LogDestinationWhere to log to.
log_all_events: boolIf true, component manager will log all events dispatched in the topology.
builtin_boot_resolver: BuiltinBootResolverWhich builtin resolver to use for the fuchsia-boot scheme. If not supplied this defaults to the NONE option.
realm_builder_resolver_and_runner: RealmBuilderResolverAndRunnerIf and how the realm builder resolver and runner are enabled.
abi_revision_policy: AbiRevisionPolicyThe enforcement and validation policy to apply to component target ABI revisions.
vmex_source: VmexSourceWhere to get the vmex resource from.
health_check: HealthCheckComponents that opt into health checks before an update is committed.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Trait Implementations§
Source§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
Source§impl TryFrom<Config> for RuntimeConfig
impl TryFrom<Config> for RuntimeConfig
impl Eq for RuntimeConfig
impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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, 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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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