pub enum Frame<'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§
Trait Implementations§
Source§impl<'a> TryFrom<&'a [u8]> for Frame<'a>
impl<'a> TryFrom<&'a [u8]> for Frame<'a>
Source§type Error = FrameError
type Error = FrameError
The type returned in the event of a conversion error.
impl<'a> StructuralPartialEq for Frame<'a>
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'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