pub struct Frame(/* private fields */);
Expand description
The wire representation of an SBP message.
Implementations§
source§impl Frame
impl Frame
pub fn msg_type(&self) -> Option<u16>
pub fn sender_id(&self) -> Option<u16>
pub fn payload_len(&self) -> Option<usize>
pub fn payload(&self) -> Option<&[u8]>
pub fn crc(&self) -> Option<u16>
pub fn check_crc(&self) -> Result<u16, CrcError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn to_sbp(&self) -> Result<Sbp, Error>
pub fn as_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin 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