pub struct Frame(_);
Expand description
The wire representation of an SBP message.
Implementations
sourceimpl Frame
impl Frame
pub fn msg_type(&self) -> u16
pub fn sender_id(&self) -> u16
pub fn payload_len(&self) -> usize
pub fn payload(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn crc(&self) -> 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]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more