pub enum Error<E> {
UnexpectedEof,
OutOfMemory,
WouldBlock,
Other(E),
}
Expand description
Higher level W5500 errors.
Variants§
UnexpectedEof
Unexpected “end of file”.
Returned when an operation could only succeed if it read a particular number of bytes but only a smaller number of bytes could be read; for example this may occur when a UDP packet is truncated.
OutOfMemory
A write operation ran out of memory in the socket buffer.
WouldBlock
The operation needs to block to complete, but the blocking operation was requested to not occur.
This is the same concept as the nb
crate, but localized to prevent
needless abstraction.
Other(E)
Errors from the Registers
trait implementation.
Trait Implementations§
source§impl<E: PartialEq> PartialEq for Error<E>
impl<E: PartialEq> PartialEq for Error<E>
impl<E: Copy> Copy for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E> StructuralEq for Error<E>
impl<E> StructuralPartialEq for Error<E>
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§
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