pub enum RawBannerError {
RawHeader {
source: RawHeaderError,
},
UnknownVersion {
version: u16,
backtrace: Backtrace,
},
InvalidSize {
version: u16,
expected: usize,
actual: usize,
backtrace: Backtrace,
},
Misaligned {
expected: usize,
actual: usize,
backtrace: Backtrace,
},
}Expand description
Errors related to Banner.
Variants§
RawHeader
See RawHeaderError.
Fields
§
source: RawHeaderErrorSource error.
UnknownVersion
Occurs when the input banner has an unknown version. Should not occur unless there’s an undocumented banner version we’re unaware of.
InvalidSize
Occurs when the input is not the right size according to its version number.
Fields
Misaligned
Occurs when the input is less aligned than the banner
Trait Implementations§
source§impl Debug for RawBannerError
impl Debug for RawBannerError
source§impl Display for RawBannerError
impl Display for RawBannerError
source§impl Error for RawBannerError
impl Error for RawBannerError
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 RawBannerError
impl ErrorCompat for RawBannerError
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<RawBannerError> for RomExtractError
impl From<RawBannerError> for RomExtractError
source§fn from(error: RawBannerError) -> Self
fn from(error: RawBannerError) -> Self
Converts to this type from the input type.
source§impl From<RawHeaderError> for RawBannerError
impl From<RawHeaderError> for RawBannerError
source§fn from(error: RawHeaderError) -> Self
fn from(error: RawHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RawBannerError
impl RefUnwindSafe for RawBannerError
impl Send for RawBannerError
impl Sync for RawBannerError
impl Unpin for RawBannerError
impl UnwindSafe for RawBannerError
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