pub enum Reason {
DidNotMatch {
preferred_backend: String,
},
RequestFailed(String),
}Expand description
The reason why a graphics adapter could not be found
Variants§
DidNotMatch
The backend did not match the preference
RequestFailed(String)
The request to create the backend failed
Trait Implementations§
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
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