pub struct LabScenarioContext<'a> { /* private fields */ }Expand description
Helper context passed to a running lab scenario.
Implementations§
Source§impl<'a> LabScenarioContext<'a>
impl<'a> LabScenarioContext<'a>
Sourcepub fn log_info(&self, event: &str, fields: &[(&str, JsonValue)])
pub fn log_info(&self, event: &str, fields: &[(&str, JsonValue)])
Emit an informational scenario event.
Sourcepub fn log_warn(&self, anomaly: &str, detail: &str)
pub fn log_warn(&self, anomaly: &str, detail: &str)
Emit a warning event for scheduler or ordering anomalies.
Sourcepub fn fixture(&self) -> &DeterminismFixture
pub fn fixture(&self) -> &DeterminismFixture
Access the underlying deterministic fixture.
Trait Implementations§
Source§impl<'a> Clone for LabScenarioContext<'a>
impl<'a> Clone for LabScenarioContext<'a>
Source§fn clone(&self) -> LabScenarioContext<'a>
fn clone(&self) -> LabScenarioContext<'a>
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<'a> Debug for LabScenarioContext<'a>
impl<'a> Debug for LabScenarioContext<'a>
impl<'a> Copy for LabScenarioContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for LabScenarioContext<'a>
impl<'a> RefUnwindSafe for LabScenarioContext<'a>
impl<'a> Send for LabScenarioContext<'a>
impl<'a> Sync for LabScenarioContext<'a>
impl<'a> Unpin for LabScenarioContext<'a>
impl<'a> UnsafeUnpin for LabScenarioContext<'a>
impl<'a> UnwindSafe for LabScenarioContext<'a>
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