#[non_exhaustive]pub struct EnvironmentConfig {
pub execution_config: Option<ExecutionConfig>,
pub peripherals_config: Option<PeripheralsConfig>,
/* private fields */
}Expand description
Environment configuration for a workload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.execution_config: Option<ExecutionConfig>Optional. Execution configuration for a workload.
peripherals_config: Option<PeripheralsConfig>Optional. Peripherals configuration that workload has access to.
Implementations§
Source§impl EnvironmentConfig
impl EnvironmentConfig
pub fn new() -> Self
Sourcepub fn set_execution_config<T>(self, v: T) -> Selfwhere
T: Into<ExecutionConfig>,
pub fn set_execution_config<T>(self, v: T) -> Selfwhere
T: Into<ExecutionConfig>,
Sets the value of execution_config.
Sourcepub fn set_or_clear_execution_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExecutionConfig>,
pub fn set_or_clear_execution_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExecutionConfig>,
Sets or clears the value of execution_config.
Sourcepub fn set_peripherals_config<T>(self, v: T) -> Selfwhere
T: Into<PeripheralsConfig>,
pub fn set_peripherals_config<T>(self, v: T) -> Selfwhere
T: Into<PeripheralsConfig>,
Sets the value of peripherals_config.
Sourcepub fn set_or_clear_peripherals_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PeripheralsConfig>,
pub fn set_or_clear_peripherals_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PeripheralsConfig>,
Sets or clears the value of peripherals_config.
Trait Implementations§
Source§impl Clone for EnvironmentConfig
impl Clone for EnvironmentConfig
Source§fn clone(&self) -> EnvironmentConfig
fn clone(&self) -> EnvironmentConfig
Returns a duplicate 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 EnvironmentConfig
impl Debug for EnvironmentConfig
Source§impl Default for EnvironmentConfig
impl Default for EnvironmentConfig
Source§fn default() -> EnvironmentConfig
fn default() -> EnvironmentConfig
Returns the “default value” for a type. Read more
Source§impl Message for EnvironmentConfig
impl Message for EnvironmentConfig
Source§impl PartialEq for EnvironmentConfig
impl PartialEq for EnvironmentConfig
impl StructuralPartialEq for EnvironmentConfig
Auto Trait Implementations§
impl Freeze for EnvironmentConfig
impl RefUnwindSafe for EnvironmentConfig
impl Send for EnvironmentConfig
impl Sync for EnvironmentConfig
impl Unpin for EnvironmentConfig
impl UnwindSafe for EnvironmentConfig
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