pub struct EngineUnsupported {
pub adapter_name: String,
pub missing_flags: DownlevelFlags,
}Expand description
An adapter that cannot run the engine: the refusal engine_support
returns, naming the adapter and the flags it is missing.
Carries its own diagnosis through std::fmt::Display — the one message a
refused adapter surfaces through, shared by the surface path
(context::create_engine_surface) and the headless harness
(crate::HeadlessRenderer), so both refuse in the same words.
Fields§
§adapter_name: StringThe adapter that was refused, for the diagnosis.
missing_flags: DownlevelFlagsThe subset of ENGINE_REQUIRED_DOWNLEVEL_FLAGS this adapter does not
report. Never empty in a value that exists: an adapter missing nothing
is Ok.
Trait Implementations§
Source§impl Clone for EngineUnsupported
impl Clone for EngineUnsupported
Source§impl Debug for EngineUnsupported
impl Debug for EngineUnsupported
Source§impl Display for EngineUnsupported
impl Display for EngineUnsupported
impl Eq for EngineUnsupported
Source§impl Error for EngineUnsupported
impl Error for EngineUnsupported
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 EngineUnsupported
impl PartialEq for EngineUnsupported
impl StructuralPartialEq for EngineUnsupported
Auto Trait Implementations§
impl Freeze for EngineUnsupported
impl RefUnwindSafe for EngineUnsupported
impl Send for EngineUnsupported
impl Sync for EngineUnsupported
impl Unpin for EngineUnsupported
impl UnsafeUnpin for EngineUnsupported
impl UnwindSafe for EngineUnsupported
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.