Enum emulator_hal::BasicBusError
source · #[non_exhaustive]pub enum BasicBusError {
ReadOnly,
UnmappedAddress,
Other(Box<dyn ErrorType>),
}
Expand description
A simple pre-defined error type for bus transactions
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadOnly
A write access was requested, but the target is read-only
UnmappedAddress
The address requested is not mapped to a device, so no data can be returned
Other(Box<dyn ErrorType>)
Some other kind of error has occurred
Trait Implementations§
source§impl Debug for BasicBusError
impl Debug for BasicBusError
impl ErrorType for BasicBusError
Auto Trait Implementations§
impl Freeze for BasicBusError
impl !RefUnwindSafe for BasicBusError
impl !Send for BasicBusError
impl !Sync for BasicBusError
impl Unpin for BasicBusError
impl !UnwindSafe for BasicBusError
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
source§impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T