pub struct DecodedPacket {
pub packet_type: PacketType,
pub payload: Vec<u8>,
pub valid_lrc: bool,
}Expand description
A decoded frame. For PacketType::Application, valid_lrc
reports whether the received LRC matched the recomputed one.
Fields§
§packet_type: PacketTypeRecognized frame kind.
payload: Vec<u8>Payload bytes (between the framing bytes); empty for control/unknown frames.
valid_lrc: boolWhether the frame’s LRC verified (always true for ACK/NAK/PROGRESS,
always false for UNKNOWN).
Trait Implementations§
Source§impl Clone for DecodedPacket
impl Clone for DecodedPacket
Source§fn clone(&self) -> DecodedPacket
fn clone(&self) -> DecodedPacket
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 moreSource§impl Debug for DecodedPacket
impl Debug for DecodedPacket
impl Eq for DecodedPacket
Source§impl PartialEq for DecodedPacket
impl PartialEq for DecodedPacket
impl StructuralPartialEq for DecodedPacket
Auto Trait Implementations§
impl Freeze for DecodedPacket
impl RefUnwindSafe for DecodedPacket
impl Send for DecodedPacket
impl Sync for DecodedPacket
impl Unpin for DecodedPacket
impl UnsafeUnpin for DecodedPacket
impl UnwindSafe for DecodedPacket
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