Enum exr::error::Error [−][src]
pub enum Error { Aborted, NotSupported(Cow<'static, str>), Invalid(Cow<'static, str>), Io(IoError), }
Expand description
An error that may happen while reading or writing an exr file. Distinguishes between three types of errors: unsupported features, invalid data, and file system errors.
Variants
Reading or Writing the file has been aborted by the caller. This error will never be triggered by this crate itself, only by users of this library. It exists to be returned from a progress callback.
The contents of the file are not supported by this specific implementation of open exr, even though the data may be valid.
The contents of the image are contradicting or insufficient.
Also returned for ErrorKind::UnexpectedEof
errors.
Io(IoError)
The underlying byte stream could not be read successfully, probably due to file system related errors.
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<TryFromIntError> for Error
[src]
impl From<TryFromIntError> for Error
[src]fn from(_: TryFromIntError) -> Self
[src]
fn from(_: TryFromIntError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more