Enum canadensis_serial::Error
source · [−]pub enum Error<E> {
Memory(OutOfMemoryError),
Driver(E),
}
Expand description
Serial transport errors
Variants
Memory(OutOfMemoryError)
Memory allocation failed
Driver(E)
The serial driver reported an error
Trait Implementations
sourceimpl<E> From<OutOfMemoryError> for Error<E>
impl<E> From<OutOfMemoryError> for Error<E>
sourcefn from(oom: OutOfMemoryError) -> Self
fn from(oom: OutOfMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
impl<E> Send for Error<E> where
E: Send,
impl<E> Sync for Error<E> where
E: Sync,
impl<E> Unpin for Error<E> where
E: Unpin,
impl<E> UnwindSafe for Error<E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more