pub struct ReplayContext {
pub mcap_path: PathBuf,
pub deterministic: bool,
}Expand description
Context for replay-based tests.
Fields§
§mcap_path: PathBuf§deterministic: boolImplementations§
Source§impl ReplayContext
impl ReplayContext
pub fn new(mcap_path: impl Into<PathBuf>) -> Self
pub async fn run_replay<F, Fut>( &self, handler: F, ) -> RobotResult<ReplayTestResult>
pub fn latency(&self) -> &LatencyStats
Auto Trait Implementations§
impl Freeze for ReplayContext
impl RefUnwindSafe for ReplayContext
impl Send for ReplayContext
impl Sync for ReplayContext
impl Unpin for ReplayContext
impl UnsafeUnpin for ReplayContext
impl UnwindSafe for ReplayContext
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