Enum gilrs_core::PlatformError
source · pub(crate) enum PlatformError {
NotImplemented(Gilrs),
Other(Box<dyn Error + Send + Sync>),
}
Expand description
Error type which can be returned when creating Gilrs
.
Private version of Error
that use platform::Gilrs
.
Variants§
NotImplemented(Gilrs)
Gilrs does not support current platform, but you can use dummy context from this error if gamepad input is not essential.
Other(Box<dyn Error + Send + Sync>)
Platform specific error.
Trait Implementations§
source§impl Debug for PlatformError
impl Debug for PlatformError
source§impl Display for PlatformError
impl Display for PlatformError
source§impl Error for PlatformError
impl Error for PlatformError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PlatformError
impl !RefUnwindSafe for PlatformError
impl Send for PlatformError
impl !Sync for PlatformError
impl Unpin for PlatformError
impl !UnwindSafe for PlatformError
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