pub enum OpenSlideError {
InternalError(String),
ImageError(String),
MissingFile(String),
UnsupportedFile(String),
CoreError(String),
}
Expand description
Enum defining all possible error when manipulating OpenSlide
struct
Variants§
InternalError(String)
FFI string conversion error Integer conversion error
ImageError(String)
Image feature related error Example: Error while resizing, bad dimension ..
MissingFile(String)
UnsupportedFile(String)
CoreError(String)
OpenSlide lib error
Trait Implementations§
Source§impl Clone for OpenSlideError
impl Clone for OpenSlideError
Source§fn clone(&self) -> OpenSlideError
fn clone(&self) -> OpenSlideError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpenSlideError
impl Debug for OpenSlideError
Source§impl Display for OpenSlideError
impl Display for OpenSlideError
Source§impl Error for OpenSlideError
impl Error for OpenSlideError
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 From<NulError> for OpenSlideError
impl From<NulError> for OpenSlideError
Source§impl From<TryFromIntError> for OpenSlideError
impl From<TryFromIntError> for OpenSlideError
Source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenSlideError
impl RefUnwindSafe for OpenSlideError
impl Send for OpenSlideError
impl Sync for OpenSlideError
impl Unpin for OpenSlideError
impl UnwindSafe for OpenSlideError
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