pub enum Error<E1 = Infallible, E2 = Infallible> {
Io(Error),
FileDump(FileDumpError<E1>),
FileLoad(FileLoadError<E2>),
}
Variants§
Trait Implementations§
Source§impl<E1, E2> Error for Error<E1, E2>
impl<E1, E2> Error for Error<E1, E2>
1.30.0 · 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<E1, E2> From<FileDumpError<E1>> for Error<E1, E2>
impl<E1, E2> From<FileDumpError<E1>> for Error<E1, E2>
Source§fn from(v: FileDumpError<E1>) -> Self
fn from(v: FileDumpError<E1>) -> Self
Converts to this type from the input type.
Source§impl<E1, E2> From<FileLoadError<E2>> for Error<E1, E2>
impl<E1, E2> From<FileLoadError<E2>> for Error<E1, E2>
Source§fn from(v: FileLoadError<E2>) -> Self
fn from(v: FileLoadError<E2>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E1, E2> Freeze for Error<E1, E2>
impl<E1 = Infallible, E2 = Infallible> !RefUnwindSafe for Error<E1, E2>
impl<E1, E2> Send for Error<E1, E2>
impl<E1, E2> Sync for Error<E1, E2>
impl<E1, E2> Unpin for Error<E1, E2>
impl<E1 = Infallible, E2 = Infallible> !UnwindSafe for Error<E1, E2>
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