#[non_exhaustive]pub enum EmbeddedIoError<E> {
Io(E),
PastTheEnd,
}Available on crate features
embedded-io-async or embedded-io only.Expand description
Why an EmbeddedIo failed; an embedded_io::Error itself.
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.
Io(E)
The writer’s error.
PastTheEnd
A patch longer than how far back it starts, which would run past the end.
Trait Implementations§
Source§impl<E: Clone> Clone for EmbeddedIoError<E>
impl<E: Clone> Clone for EmbeddedIoError<E>
impl<E: Copy> Copy for EmbeddedIoError<E>
Source§impl<E: Debug> Debug for EmbeddedIoError<E>
impl<E: Debug> Debug for EmbeddedIoError<E>
Source§impl<E: Display> Display for EmbeddedIoError<E>
impl<E: Display> Display for EmbeddedIoError<E>
impl<E: Eq> Eq for EmbeddedIoError<E>
Source§impl<E: Error> Error for EmbeddedIoError<E>
impl<E: Error> Error for EmbeddedIoError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E: Error> Error for EmbeddedIoError<E>
impl<E: Error> Error for EmbeddedIoError<E>
Source§impl<E> From<E> for EmbeddedIoError<E>
impl<E> From<E> for EmbeddedIoError<E>
Source§impl<E: PartialEq> PartialEq for EmbeddedIoError<E>
impl<E: PartialEq> PartialEq for EmbeddedIoError<E>
impl<E: PartialEq> StructuralPartialEq for EmbeddedIoError<E>
Auto Trait Implementations§
impl<E> Forget for EmbeddedIoError<E>
impl<E> Freeze for EmbeddedIoError<E>where
E: Freeze,
impl<E> Move for EmbeddedIoError<E>
impl<E> RefUnwindSafe for EmbeddedIoError<E>where
E: RefUnwindSafe,
impl<E> Send for EmbeddedIoError<E>where
E: Send,
impl<E> Sync for EmbeddedIoError<E>where
E: Sync,
impl<E> Unpin for EmbeddedIoError<E>where
E: Unpin,
impl<E> UnsafeUnpin for EmbeddedIoError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for EmbeddedIoError<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