Struct fidl_fuchsia_component_decl::Environment
source · pub struct Environment {
pub name: Option<String>,
pub extends: Option<EnvironmentExtends>,
pub runners: Option<Vec<RunnerRegistration>>,
pub resolvers: Option<Vec<ResolverRegistration>>,
pub debug_capabilities: Option<Vec<DebugRegistration>>,
pub stop_timeout_ms: Option<u32>,
/* private fields */
}
Expand description
Declares an environment which configures a realm.
Fields§
§name: Option<String>
(Required) The name of this environment.
extends: Option<EnvironmentExtends>
(Required) Specifies how the initial state of this environment is constructed.
runners: Option<Vec<RunnerRegistration>>
(Optional) List of runners available in this environment.
This list determines the total set of runners that are available for any component in the environment to use.
resolvers: Option<Vec<ResolverRegistration>>
(Optional) List of component resolvers and the URL schemes they are
registered to resolve. These registrations determine how components are
resolved in the realm. If the component URL scheme does not match any of
these resolvers, URL resolution is delegated to the parent environment,
if this environment extends
from REALM
.
debug_capabilities: Option<Vec<DebugRegistration>>
(Optional) Expose capabilities to debug section when component manager allows it.
These capabilities are accessible to any component in the environment
with a use
declaration with source == debug
. Only capabilities
intended to support development should be declared here, and they are
only allowed if explicitly included in the component manager allowlist.
stop_timeout_ms: Option<u32>
(Optional) The duration in milliseconds that the component will have to
stop before it is killed. Required if this environment extends
from
NONE
.
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Environment
impl Debug for Environment
source§impl<D: ResourceDialect> Decode<Environment, D> for Environment
impl<D: ResourceDialect> Decode<Environment, D> for Environment
source§impl Default for Environment
impl Default for Environment
source§fn default() -> Environment
fn default() -> Environment
source§impl<D: ResourceDialect> Encode<Environment, D> for &Environment
impl<D: ResourceDialect> Encode<Environment, D> for &Environment
source§impl PartialEq for Environment
impl PartialEq for Environment
source§fn eq(&self, other: &Environment) -> bool
fn eq(&self, other: &Environment) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for Environment
impl TypeMarker for Environment
§type Owned = Environment
type Owned = Environment
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for Environment
impl ValueTypeMarker for Environment
§type Borrowed<'a> = &'a Environment
type Borrowed<'a> = &'a Environment
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
)