pub enum ResFileError {
Io(Error),
ResMan(ResManError),
ResRef(ResRefError),
Message(String),
}Expand description
Errors returned while reading a single-file resource container.
Variants§
Io(Error)
Filesystem access failed.
ResMan(ResManError)
Resource manager setup failed.
ResRef(ResRefError)
Resource reference parsing failed.
Message(String)
The input path was invalid.
Trait Implementations§
Source§impl Debug for ResFileError
impl Debug for ResFileError
Source§impl Display for ResFileError
impl Display for ResFileError
Source§impl Error for ResFileError
impl Error for ResFileError
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<Error> for ResFileError
impl From<Error> for ResFileError
Source§impl From<ResManError> for ResFileError
impl From<ResManError> for ResFileError
Source§fn from(value: ResManError) -> Self
fn from(value: ResManError) -> Self
Converts to this type from the input type.
Source§impl From<ResRefError> for ResFileError
impl From<ResRefError> for ResFileError
Source§fn from(value: ResRefError) -> Self
fn from(value: ResRefError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResFileError
impl !RefUnwindSafe for ResFileError
impl Send for ResFileError
impl Sync for ResFileError
impl Unpin for ResFileError
impl UnsafeUnpin for ResFileError
impl !UnwindSafe for ResFileError
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