pub struct SimFaultRecord {
pub time_ms: u64,
pub event: SimFaultEvent,
}Expand description
A fault recorded by the simulation engine, stamped with the sim time at which it occurred.
Drained by the runner via SimWorld::take_faults and recorded into the
observability timeline under
crate::SIM_FAULT_EVENT_NAME.
Fields§
§time_ms: u64Simulation time in milliseconds when the fault occurred.
event: SimFaultEventThe fault event.
Trait Implementations§
Source§impl Clone for SimFaultRecord
impl Clone for SimFaultRecord
Source§fn clone(&self) -> SimFaultRecord
fn clone(&self) -> SimFaultRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SimFaultRecord
impl RefUnwindSafe for SimFaultRecord
impl Send for SimFaultRecord
impl Sync for SimFaultRecord
impl Unpin for SimFaultRecord
impl UnsafeUnpin for SimFaultRecord
impl UnwindSafe for SimFaultRecord
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