Enum transmog_versions::Error
source · pub enum Error<E: Display> {
UnknownVersion(UnknownVersion),
Io(Error),
Format(E),
}
Expand description
An error from transmog-versions
.
Variants§
UnknownVersion(UnknownVersion)
An unknown version was encountered.
Io(Error)
An io error occurred
Format(E)
An error occurred from a format.
Trait Implementations§
source§impl<E: Display> Error for Error<E>where
Self: Debug + Display,
impl<E: Display> Error for Error<E>where Self: Debug + Display,
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: Display> From<UnknownVersion> for Error<E>
impl<E: Display> From<UnknownVersion> for Error<E>
source§fn from(source: UnknownVersion) -> Self
fn from(source: UnknownVersion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Error<E>
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>
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