pub struct Environment {
pub name: Name,
pub extends: Option<EnvironmentExtends>,
pub runners: Option<Vec<RunnerRegistration>>,
pub resolvers: Option<Vec<ResolverRegistration>>,
pub debug: Option<Vec<DebugRegistration>>,
pub stop_timeout_ms: Option<StopTimeoutMs>,
}Expand description
Example:
environments: [
{
name: "test-env",
extends: "realm",
runners: [
{
runner: "gtest-runner",
from: "#gtest",
},
],
resolvers: [
{
resolver: "full-resolver",
from: "parent",
scheme: "fuchsia-pkg",
},
],
},
],Fields§
§name: NameThe name of the environment, which is a string of one or more of the
following characters: a-z, 0-9, _, ., -. The name identifies this
environment when used in a reference.
extends: Option<EnvironmentExtends>How the environment should extend this realm’s environment.
realm: Inherit all properties from this component’s environment.none: Start with an empty environment, do not inherit anything.
runners: Option<Vec<RunnerRegistration>>The runners registered in the environment. An array of objects with the following properties:
resolvers: Option<Vec<ResolverRegistration>>The resolvers registered in the environment. An array of objects with the following properties:
debug: Option<Vec<DebugRegistration>>Debug protocols available to any component in this environment acquired
through use from debug.
stop_timeout_ms: Option<StopTimeoutMs>The number of milliseconds to wait, after notifying a component in this environment that it
should terminate, before forcibly killing it. This field is required if the environment
extends from none.
Implementations§
Source§impl Environment
impl Environment
pub fn merge_from(&mut self, other: &mut Self) -> Result<(), Error>
Trait Implementations§
Source§impl Debug for Environment
impl Debug for Environment
Source§impl<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MarkdownReferenceDocGenerator for Environment
impl MarkdownReferenceDocGenerator for Environment
Source§fn get_reference_doc_markdown() -> String
fn get_reference_doc_markdown() -> String
Returns a Markdown representation of the reference docs for the
struct that is derived from
ReferenceDoc. The returned Markdown
indents any # Markdown headers in individual field doc comments
to ensure a well structured final Markdown document.Source§impl PartialEq for Environment
impl PartialEq for Environment
Source§impl Serialize for Environment
impl Serialize 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§
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
Mutably borrows from an owned value. Read more
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<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>
Converts
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>
Converts
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