#[non_exhaustive]pub enum Error {
NoMedia,
WriteError,
OperationTimedOut,
OutOfBounds,
MediaInUse,
IncompatibleCommand,
}
Expand description
The type used for errors encountered while reading or writing save media.
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.
NoMedia
There is no save media attached to this game cart.
WriteError
Failed to write the data to save media.
OperationTimedOut
An operation on save media timed out.
OutOfBounds
An attempt was made to access save media at an invalid offset.
MediaInUse
The media is already in use.
This can generally only happen in an IRQ that happens during an ongoing save media operation.
IncompatibleCommand
This command cannot be used with the save media in use.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more