pub enum ReadHciError<E: Error> {
BufferTooSmall,
InvalidValue,
Read(ReadExactError<E>),
}
Expand description
Errors from reading HCI data.
Variants§
BufferTooSmall
Not enough bytes in buffer for reading.
InvalidValue
Value of input did not match valid values.
Read(ReadExactError<E>)
Error from underlying embedded-io type.
Trait Implementations§
Source§impl<E: Clone + Error> Clone for ReadHciError<E>
impl<E: Clone + Error> Clone for ReadHciError<E>
Source§fn clone(&self) -> ReadHciError<E>
fn clone(&self) -> ReadHciError<E>
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<E: Error> Error for ReadHciError<E>
impl<E: Error> Error for ReadHciError<E>
Source§impl<E: Error> From<FromHciBytesError> for ReadHciError<E>
impl<E: Error> From<FromHciBytesError> for ReadHciError<E>
Source§fn from(value: FromHciBytesError) -> Self
fn from(value: FromHciBytesError) -> Self
Converts to this type from the input type.
Source§impl<E: Error> From<ReadExactError<E>> for ReadHciError<E>
impl<E: Error> From<ReadExactError<E>> for ReadHciError<E>
Source§fn from(value: ReadExactError<E>) -> Self
fn from(value: ReadExactError<E>) -> Self
Converts to this type from the input type.
Source§impl<E: Error> From<ReadHciError<E>> for Error<E>
impl<E: Error> From<ReadHciError<E>> for Error<E>
Source§fn from(e: ReadHciError<E>) -> Self
fn from(e: ReadHciError<E>) -> Self
Converts to this type from the input type.
impl<E: Copy + Error> Copy for ReadHciError<E>
impl<E: Eq + Error> Eq for ReadHciError<E>
impl<E: Error> StructuralPartialEq for ReadHciError<E>
Auto Trait Implementations§
impl<E> Freeze for ReadHciError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ReadHciError<E>where
E: RefUnwindSafe,
impl<E> Send for ReadHciError<E>where
E: Send,
impl<E> Sync for ReadHciError<E>where
E: Sync,
impl<E> Unpin for ReadHciError<E>where
E: Unpin,
impl<E> UnwindSafe for ReadHciError<E>where
E: UnwindSafe,
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