pub struct Frame {
pub at: Tick,
pub end: Tick,
pub bytes: Vec<u8>,
pub miso: Vec<u8>,
pub text: String,
pub error: Option<String>,
}Expand description
One decoded frame or bus transaction.
Fields§
§at: TickWhen the frame or transaction began.
end: TickWhen it ended.
bytes: Vec<u8>Payload bytes (UART: the byte; I2C: data bytes after the address; SPI: MOSI bytes).
miso: Vec<u8>SPI MISO bytes; empty for every other protocol.
text: StringOne-line human summary.
error: Option<String>Framing or protocol problem, if any.
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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