pub enum Ra2Error {
IoError(Error),
CryptoError {
message: String,
},
InvalidFormat {
message: String,
},
EncodeError {
format: String,
message: String,
},
DecodeError {
format: String,
message: String,
},
FileNotFound(String),
OutOfBoundary {
limit: usize,
message: String,
},
}Expand description
Error type for RA2 MIX file operations
Variants§
IoError(Error)
IO error
CryptoError
Crypto error
InvalidFormat
Invalid file format
EncodeError
Encode error
DecodeError
Decode error
FileNotFound(String)
Missing file
OutOfBoundary
Out of boundary
Trait Implementations§
Source§impl Error for Ra2Error
impl Error for Ra2Error
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<ImageError> for Ra2Error
impl From<ImageError> for Ra2Error
Source§fn from(error: ImageError) -> Self
fn from(error: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Ra2Error
impl !RefUnwindSafe for Ra2Error
impl Send for Ra2Error
impl Sync for Ra2Error
impl Unpin for Ra2Error
impl !UnwindSafe for Ra2Error
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