pub enum FrameResult<'a> {
Ok {
type_id: u8,
tag: u16,
payload: &'a [u8],
},
Err(FrameDecodeError),
}Expand description
Outcome of attempting to decode one frame delimited by a 0x00 byte.
Variants§
Trait Implementations§
Source§impl<'a> Clone for FrameResult<'a>
impl<'a> Clone for FrameResult<'a>
Source§fn clone(&self) -> FrameResult<'a>
fn clone(&self) -> FrameResult<'a>
Returns a duplicate 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<'a> Debug for FrameResult<'a>
impl<'a> Debug for FrameResult<'a>
Source§impl<'a> Format for FrameResult<'a>
impl<'a> Format for FrameResult<'a>
Source§impl<'a> PartialEq for FrameResult<'a>
impl<'a> PartialEq for FrameResult<'a>
impl<'a> Copy for FrameResult<'a>
impl<'a> Eq for FrameResult<'a>
impl<'a> StructuralPartialEq for FrameResult<'a>
Auto Trait Implementations§
impl<'a> Freeze for FrameResult<'a>
impl<'a> RefUnwindSafe for FrameResult<'a>
impl<'a> Send for FrameResult<'a>
impl<'a> Sync for FrameResult<'a>
impl<'a> Unpin for FrameResult<'a>
impl<'a> UnsafeUnpin for FrameResult<'a>
impl<'a> UnwindSafe for FrameResult<'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