#[non_exhaustive]pub enum AdapterIdentityError {
Unavailable,
Mismatch(AdapterIdentityField),
}Expand description
Failure to authorize the linked native adapter before using any Box2D API.
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.
Mismatch(AdapterIdentityField)
Trait Implementations§
Source§impl Clone for AdapterIdentityError
impl Clone for AdapterIdentityError
Source§fn clone(&self) -> AdapterIdentityError
fn clone(&self) -> AdapterIdentityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdapterIdentityError
Source§impl Debug for AdapterIdentityError
impl Debug for AdapterIdentityError
Source§impl Display for AdapterIdentityError
impl Display for AdapterIdentityError
impl Eq for AdapterIdentityError
Source§impl Error for AdapterIdentityError
impl Error for AdapterIdentityError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl PartialEq for AdapterIdentityError
impl PartialEq for AdapterIdentityError
impl StructuralPartialEq for AdapterIdentityError
Auto Trait Implementations§
impl Freeze for AdapterIdentityError
impl RefUnwindSafe for AdapterIdentityError
impl Send for AdapterIdentityError
impl Sync for AdapterIdentityError
impl Unpin for AdapterIdentityError
impl UnsafeUnpin for AdapterIdentityError
impl UnwindSafe for AdapterIdentityError
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