pub enum Error<FE> {
Format(FE),
Io(Error),
}
Expand description
An error that can occur within singlefile
.
Variants§
Format(FE)
An error caused by an implementation of FileFormat
.
Io(Error)
An error caused by the filesystem.
Trait Implementations§
Source§impl<FE> Error for Error<FE>
impl<FE> Error for Error<FE>
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()
Auto Trait Implementations§
impl<FE> Freeze for Error<FE>where
FE: Freeze,
impl<FE> !RefUnwindSafe for Error<FE>
impl<FE> Send for Error<FE>where
FE: Send,
impl<FE> Sync for Error<FE>where
FE: Sync,
impl<FE> Unpin for Error<FE>where
FE: Unpin,
impl<FE> !UnwindSafe for Error<FE>
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