pub enum Error {
NotAcknowledgedByMgba,
SetLoggerError(SetLoggerError),
}
Expand description
An error occurring during initialization.
Variants§
NotAcknowledgedByMgba
Enabling of logging was not acknowledged by MGBA.
This likely indicates that the program is not being run in mGBA at all. In many cases, this
may be considered a recoverable error. However, if this error is returned by init()
,
then the logger was never actually set, meaning a different logger could potentially be set
instead.
SetLoggerError(SetLoggerError)
An error returned by log::set_logger()
.
This most often indicates that another logger has already been set by the program.
Trait Implementations§
source§impl From<SetLoggerError> for Error
impl From<SetLoggerError> for Error
source§fn from(error: SetLoggerError) -> Self
fn from(error: SetLoggerError) -> Self
Converts to this type from the input type.
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§
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