pub struct Logging {
pub dst_addr: u8,
pub src_addr: u8,
pub logtype: u16,
pub timestamp: u32,
/* private fields */
}Expand description
Represents a Logging packet (frame type 0x34).
Fields§
§dst_addr: u8§src_addr: u8§logtype: u16§timestamp: u32Implementations§
Trait Implementations§
Source§impl CrsfPacket for Logging
impl CrsfPacket for Logging
Source§const PACKET_TYPE: PacketType = PacketType::Logging
const PACKET_TYPE: PacketType = PacketType::Logging
The CRSF frame type identifier for this packet.
Source§const MIN_PAYLOAD_SIZE: usize = 8usize
const MIN_PAYLOAD_SIZE: usize = 8usize
The minimum expected length of the packet’s payload in bytes.
For fixed-size packets, this is the same as the payload size.
Source§fn from_bytes(data: &[u8]) -> Result<Self, CrsfParsingError>
fn from_bytes(data: &[u8]) -> Result<Self, CrsfParsingError>
Creates a packet instance from a payload byte slice.
The slice is guaranteed to have a length of at least
MIN_PAYLOAD_SIZE.fn to_bytes(&self, buffer: &mut [u8]) -> Result<usize, CrsfParsingError>
fn validate_buffer_size(&self, buffer: &[u8]) -> Result<(), CrsfParsingError>
impl StructuralPartialEq for Logging
Auto Trait Implementations§
impl Freeze for Logging
impl RefUnwindSafe for Logging
impl Send for Logging
impl Sync for Logging
impl Unpin for Logging
impl UnwindSafe for Logging
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