pub enum LowByte {
Command(Command),
Response(Response),
}Expand description
The low byte of a frame header.
Variants§
Implementations§
Source§impl LowByte
impl LowByte
Sourcepub const fn is_command(self) -> bool
pub const fn is_command(self) -> bool
Returns true if the low byte is a command else false.
Sourcepub const fn is_response(self) -> bool
pub const fn is_response(self) -> bool
Returns true if the low byte is a response else false.
Trait Implementations§
impl Copy for LowByte
impl Eq for LowByte
Source§impl FromLeStream for LowByte
impl FromLeStream for LowByte
impl StructuralPartialEq for LowByte
Source§impl ToLeStream for LowByte
impl ToLeStream for LowByte
Auto Trait Implementations§
impl Freeze for LowByte
impl RefUnwindSafe for LowByte
impl Send for LowByte
impl Sync for LowByte
impl Unpin for LowByte
impl UnsafeUnpin for LowByte
impl UnwindSafe for LowByte
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