pub struct RecordingCaDevice<D> {
pub log: Vec<LinkEvent>,
/* private fields */
}Expand description
A CaDevice decorator that records every frame in both directions
(plus ioctls) for live-CAM diagnostics. Wrap a real device, run, then dump
the log — or decode it with
trace::decode_log — to get an annotated byte
trace without hand-instrumenting the device:
let mut driver = Driver::new(RecordingCaDevice::new(real_device()));
driver.init().unwrap();
// ... pump ...
println!("{}", trace::decode_log(driver.device().log()));Fields§
§log: Vec<LinkEvent>The captured link events, in order.
Implementations§
Trait Implementations§
Source§impl<D: CaDevice> CaDevice for RecordingCaDevice<D>
impl<D: CaDevice> CaDevice for RecordingCaDevice<D>
Source§impl<D: Debug> Debug for RecordingCaDevice<D>
impl<D: Debug> Debug for RecordingCaDevice<D>
Source§impl<D: Default> Default for RecordingCaDevice<D>
impl<D: Default> Default for RecordingCaDevice<D>
Source§fn default() -> RecordingCaDevice<D>
fn default() -> RecordingCaDevice<D>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<D> Freeze for RecordingCaDevice<D>where
D: Freeze,
impl<D> RefUnwindSafe for RecordingCaDevice<D>where
D: RefUnwindSafe,
impl<D> Send for RecordingCaDevice<D>where
D: Send,
impl<D> Sync for RecordingCaDevice<D>where
D: Sync,
impl<D> Unpin for RecordingCaDevice<D>where
D: Unpin,
impl<D> UnsafeUnpin for RecordingCaDevice<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for RecordingCaDevice<D>where
D: UnwindSafe,
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