pub enum Error<U = Infallible> {
Io(Error),
Merge(U),
InvalidCompressionType,
InvalidFormatVersion,
}
Expand description
Represents an error that can occur while using this library.
Variants§
Io(Error)
An io::Error
occured either while reading or writing.
Merge(U)
A merge error occured while trying to merge values.
InvalidCompressionType
An invalid crate::CompressionType
has been encountered.
InvalidFormatVersion
This grenad file format is invalid.
Trait Implementations§
source§impl<U: Display + Debug> Error for Error<U>
impl<U: Display + Debug> Error for Error<U>
1.30.0 · 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<U> From<Infallible> for Error<U>
impl<U> From<Infallible> for Error<U>
source§fn from(_err: Infallible) -> Error<U>
fn from(_err: Infallible) -> Error<U>
Converts to this type from the input type.
Auto Trait Implementations§
impl<U> Freeze for Error<U>where
U: Freeze,
impl<U = Infallible> !RefUnwindSafe for Error<U>
impl<U> Send for Error<U>where
U: Send,
impl<U> Sync for Error<U>where
U: Sync,
impl<U> Unpin for Error<U>where
U: Unpin,
impl<U = Infallible> !UnwindSafe for Error<U>
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