pub struct Replay { /* private fields */ }Expand description
Replay engine that feeds MCAP messages in timestamp order.
Implementations§
Source§impl Replay
impl Replay
pub fn from_mcap(path: impl AsRef<Path>) -> RobotResult<Self>
pub fn messages(&self) -> &[McapRecord]
pub fn topics(&self) -> Vec<String>
Sourcepub async fn run<F, Fut>(&self, handler: F) -> RobotResult<ReplayResult>
pub async fn run<F, Fut>(&self, handler: F) -> RobotResult<ReplayResult>
Replay messages through a callback, measuring per-message latency.
pub fn format_summary(result: &ReplayResult) -> String
Auto Trait Implementations§
impl Freeze for Replay
impl RefUnwindSafe for Replay
impl Send for Replay
impl Sync for Replay
impl Unpin for Replay
impl UnsafeUnpin for Replay
impl UnwindSafe for Replay
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