#[non_exhaustive]pub enum WiredFrame<'a> {
SingleCharacter {
character: u8,
},
ShortFrame {
function: Function,
address: Address,
},
LongFrame {
function: Function,
address: Address,
data: &'a [u8],
},
ControlFrame {
function: Function,
address: Address,
data: &'a [u8],
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<'a> Debug for WiredFrame<'a>
impl<'a> Debug for WiredFrame<'a>
Source§impl<'a> PartialEq for WiredFrame<'a>
impl<'a> PartialEq for WiredFrame<'a>
Source§impl<'a> TryFrom<&'a [u8]> for WiredFrame<'a>
impl<'a> TryFrom<&'a [u8]> for WiredFrame<'a>
Source§type Error = FrameError
type Error = FrameError
The type returned in the event of a conversion error.
Source§fn try_from(data: &'a [u8]) -> Result<WiredFrame<'a>, FrameError>
fn try_from(data: &'a [u8]) -> Result<WiredFrame<'a>, FrameError>
Performs the conversion.
impl<'a> StructuralPartialEq for WiredFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for WiredFrame<'a>
impl<'a> RefUnwindSafe for WiredFrame<'a>
impl<'a> Send for WiredFrame<'a>
impl<'a> Sync for WiredFrame<'a>
impl<'a> Unpin for WiredFrame<'a>
impl<'a> UnsafeUnpin for WiredFrame<'a>
impl<'a> UnwindSafe for WiredFrame<'a>
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