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§impl TypeMarker for Environment
impl TypeMarker for Environment
Source§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
Source§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)