pub enum SHRFileError {
IOError(Error),
InvalidSignature,
InvalidVersion,
InvalidFile,
}Expand description
Enumeration representing possible errors that can occur when handling SHR files.
Variants§
Trait Implementations§
Source§impl Debug for SHRFileError
impl Debug for SHRFileError
Source§impl Display for SHRFileError
Implementation for displaying SHRFileError enumeration values.
impl Display for SHRFileError
Implementation for displaying SHRFileError enumeration values.
Source§impl From<Error> for SHRFileError
Implementation for converting io::Error values to SHRFileError enumeration values.
impl From<Error> for SHRFileError
Implementation for converting io::Error values to SHRFileError enumeration values.
Source§fn from(err: Error) -> SHRFileError
fn from(err: Error) -> SHRFileError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SHRFileError
impl !RefUnwindSafe for SHRFileError
impl Send for SHRFileError
impl Sync for SHRFileError
impl Unpin for SHRFileError
impl !UnwindSafe for SHRFileError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more