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>,
}
Expand description
Declares an environment which configures a realm.
Fields§
§name: Option<String>
§extends: Option<EnvironmentExtends>
§runners: Option<Vec<RunnerRegistration>>
§resolvers: Option<Vec<ResolverRegistration>>
§debug_capabilities: Option<Vec<DebugRegistration>>
§stop_timeout_ms: Option<u32>
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Environment
impl Debug for Environment
Source§impl Encodable for Environment
impl Encodable for Environment
Source§type Encoded = WireEnvironment
type Encoded = WireEnvironment
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for Environmentwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for Environmentwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireEnvironment> for Environment
impl TakeFrom<WireEnvironment> for Environment
Source§fn take_from(from: &WireEnvironment) -> Self
fn take_from(from: &WireEnvironment) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto 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