pub enum BufferError<E: ExternalMemory> {
DataTooShort {
position: usize,
minimal_length: usize,
},
External(E::ExternalMemoryError),
OutOfRange {
position: usize,
total_length: usize,
},
}
Variants§
Trait Implementations§
source§impl<E: Debug + ExternalMemory> Debug for BufferError<E>where
E::ExternalMemoryError: Debug,
impl<E: Debug + ExternalMemory> Debug for BufferError<E>where
E::ExternalMemoryError: Debug,
source§impl<E: ExternalMemory> Display for BufferError<E>
impl<E: ExternalMemory> Display for BufferError<E>
source§impl<E: ExternalMemory> Error for BufferError<E>
impl<E: ExternalMemory> Error for BufferError<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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: PartialEq + ExternalMemory> PartialEq for BufferError<E>where
E::ExternalMemoryError: PartialEq,
impl<E: PartialEq + ExternalMemory> PartialEq for BufferError<E>where
E::ExternalMemoryError: PartialEq,
source§fn eq(&self, other: &BufferError<E>) -> bool
fn eq(&self, other: &BufferError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Eq + ExternalMemory> Eq for BufferError<E>where
E::ExternalMemoryError: Eq,
impl<E: ExternalMemory> StructuralEq for BufferError<E>
impl<E: ExternalMemory> StructuralPartialEq for BufferError<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for BufferError<E>
impl<E> Send for BufferError<E>
impl<E> Sync for BufferError<E>
impl<E> Unpin for BufferError<E>
impl<E> UnwindSafe for BufferError<E>
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