pub struct ExecutionContext {
pub runtime_version: Option<String>,
pub dependencies: HashMap<String, String>,
pub random_seed: Option<i64>,
pub environment_variables: HashMap<String, String>,
pub hardware_info: HashMap<String, Value>,
}Expand description
Execution context for deterministic replay
Fields§
§runtime_version: Option<String>§dependencies: HashMap<String, String>§random_seed: Option<i64>§environment_variables: HashMap<String, String>§hardware_info: HashMap<String, Value>Implementations§
Source§impl ExecutionContext
impl ExecutionContext
pub fn new() -> Self
pub fn with_runtime_version(self, version: impl Into<String>) -> Self
pub fn with_dependency( self, name: impl Into<String>, version: impl Into<String>, ) -> Self
pub fn with_random_seed(self, seed: i64) -> Self
pub fn with_env_var( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for ExecutionContext
impl Clone for ExecutionContext
Source§fn clone(&self) -> ExecutionContext
fn clone(&self) -> ExecutionContext
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 ExecutionContext
impl Debug for ExecutionContext
Source§impl Default for ExecutionContext
impl Default for ExecutionContext
Source§fn default() -> ExecutionContext
fn default() -> ExecutionContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionContext
impl<'de> Deserialize<'de> for ExecutionContext
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 PartialEq for ExecutionContext
impl PartialEq for ExecutionContext
Source§impl Serialize for ExecutionContext
impl Serialize for ExecutionContext
impl StructuralPartialEq for ExecutionContext
Auto Trait Implementations§
impl Freeze for ExecutionContext
impl RefUnwindSafe for ExecutionContext
impl Send for ExecutionContext
impl Sync for ExecutionContext
impl Unpin for ExecutionContext
impl UnwindSafe for ExecutionContext
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