pub enum JImageError {
Magic(u32),
Version {
major_version: u16,
minor_version: u16,
},
RawRead {
from: usize,
to: usize,
},
Utf8(Utf8Error),
Io(Error),
Internal(String),
}Expand description
Represents errors that can occur while working with JImage files.
Variants§
Trait Implementations§
Source§impl Debug for JImageError
impl Debug for JImageError
Source§impl Display for JImageError
impl Display for JImageError
Source§impl Error for JImageError
impl Error for JImageError
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 From<Error> for JImageError
impl From<Error> for JImageError
Auto Trait Implementations§
impl Freeze for JImageError
impl !RefUnwindSafe for JImageError
impl Send for JImageError
impl Sync for JImageError
impl Unpin for JImageError
impl !UnwindSafe for JImageError
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