pub enum ResourceError {
InvalidTable(String),
InvalidBytes(ReadError),
InvalidIconResource(ImageError),
IOError(Error),
}Expand description
Errors that can occur when modifying resource data.
Variants§
InvalidTable(String)
InvalidBytes(ReadError)
InvalidIconResource(ImageError)
Available on crate feature
images only.IOError(Error)
Available on crate feature
std only.Trait Implementations§
Source§impl Debug for ResourceError
impl Debug for ResourceError
Source§impl Display for ResourceError
impl Display for ResourceError
Source§impl Error for ResourceError
impl Error for ResourceError
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 ResourceError
Available on crate feature std only.
impl From<Error> for ResourceError
Available on crate feature
std only.Source§impl From<ImageError> for ResourceError
Available on crate feature images only.
impl From<ImageError> for ResourceError
Available on crate feature
images only.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 ResourceError
impl !RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl !UnwindSafe for ResourceError
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