pub struct RxBufferStatus {
pub payload_len: u8,
pub start: u8,
}Expand description
Where a received payload sits in the data buffer, from GetRxBufferStatus.
Fields§
§payload_len: u8The length of the last received payload in bytes.
start: u8The buffer offset of its first byte.
Implementations§
Source§impl RxBufferStatus
impl RxBufferStatus
Sourcepub const fn from_bytes(bytes: [u8; 2]) -> RxBufferStatus
pub const fn from_bytes(bytes: [u8; 2]) -> RxBufferStatus
Trait Implementations§
Source§impl Clone for RxBufferStatus
impl Clone for RxBufferStatus
Source§fn clone(&self) -> RxBufferStatus
fn clone(&self) -> RxBufferStatus
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 moreimpl Copy for RxBufferStatus
Source§impl Debug for RxBufferStatus
impl Debug for RxBufferStatus
impl Eq for RxBufferStatus
Source§impl Hash for RxBufferStatus
impl Hash for RxBufferStatus
Source§impl PartialEq for RxBufferStatus
impl PartialEq for RxBufferStatus
Source§fn eq(&self, other: &RxBufferStatus) -> bool
fn eq(&self, other: &RxBufferStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RxBufferStatus
Auto Trait Implementations§
impl Freeze for RxBufferStatus
impl RefUnwindSafe for RxBufferStatus
impl Send for RxBufferStatus
impl Sync for RxBufferStatus
impl Unpin for RxBufferStatus
impl UnsafeUnpin for RxBufferStatus
impl UnwindSafe for RxBufferStatus
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