pub struct StatusByte(/* private fields */);Expand description
Status Byte is between [0x80 and 0xFF]
Status bytes are eight-bit binary numbers in which the Most Significant Bit (MSB) is set (binary 1). Status bytes serve to identify the message type, that is, the purpose of the Data bytes which follow it. Except for Real-Time messages, new Status bytes will always command a receiver to adopt a new status, even if the last message was not completed.
Implementations§
Trait Implementations§
Source§impl Clone for StatusByte
impl Clone for StatusByte
Source§fn clone(&self) -> StatusByte
fn clone(&self) -> StatusByte
Returns a copy of the value. Read more
1.0.0 · 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 StatusByte
impl Debug for StatusByte
Source§impl Display for StatusByte
impl Display for StatusByte
Source§impl Ord for StatusByte
impl Ord for StatusByte
Source§fn cmp(&self, other: &StatusByte) -> Ordering
fn cmp(&self, other: &StatusByte) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StatusByte
impl PartialEq for StatusByte
Source§impl PartialOrd for StatusByte
impl PartialOrd for StatusByte
Source§impl<'a> TryFrom<&'a u8> for StatusByte
impl<'a> TryFrom<&'a u8> for StatusByte
Source§impl TryFrom<u8> for StatusByte
impl TryFrom<u8> for StatusByte
impl Copy for StatusByte
impl Eq for StatusByte
impl StructuralPartialEq for StatusByte
Auto Trait Implementations§
impl Freeze for StatusByte
impl RefUnwindSafe for StatusByte
impl Send for StatusByte
impl Sync for StatusByte
impl Unpin for StatusByte
impl UnwindSafe for StatusByte
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