pub enum BannerError {
BannerFile {
source: BannerImageError,
},
TooManyKeyframes {
max: usize,
actual: usize,
backtrace: Backtrace,
},
VersionNotSupported {
max: BannerVersion,
actual: BannerVersion,
backtrace: Backtrace,
},
}Expand description
Errors related to Banner.
Variants§
BannerFile
See BannerImageError.
Fields
§
source: BannerImageErrorSource error.
TooManyKeyframes
Occurs when trying to build a banner to place in the ROM, but there were too many keyframes.
Fields
VersionNotSupported
Occurs when trying to build a banner to place in the ROM, but the version is not yet supported by this library.
Trait Implementations§
source§impl Debug for BannerError
impl Debug for BannerError
source§impl Display for BannerError
impl Display for BannerError
source§impl Error for BannerError
impl Error for BannerError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for BannerError
impl ErrorCompat for BannerError
source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moresource§impl From<BannerError> for RomBuildError
impl From<BannerError> for RomBuildError
source§fn from(error: BannerError) -> Self
fn from(error: BannerError) -> Self
Converts to this type from the input type.
source§impl From<BannerImageError> for BannerError
impl From<BannerImageError> for BannerError
source§fn from(error: BannerImageError) -> Self
fn from(error: BannerImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for BannerError
impl !RefUnwindSafe for BannerError
impl Send for BannerError
impl Sync for BannerError
impl Unpin for BannerError
impl !UnwindSafe for BannerError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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