pub struct BackendSkip {
pub backend: GpuBackendKind,
pub reason: BackendSkipReason,
}Expand description
Explanation for a backend that was skipped during selection.
use daedalus_gpu::{BackendSkip, BackendSkipReason, GpuBackendKind};
let skip = BackendSkip { backend: GpuBackendKind::Wgpu, reason: BackendSkipReason::FeatureNotEnabled };
assert!(skip.describe().contains("not built"));Fields§
§backend: GpuBackendKind§reason: BackendSkipReasonImplementations§
Trait Implementations§
Source§impl Clone for BackendSkip
impl Clone for BackendSkip
Source§fn clone(&self) -> BackendSkip
fn clone(&self) -> BackendSkip
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendSkip
impl Debug for BackendSkip
Source§impl<'de> Deserialize<'de> for BackendSkip
impl<'de> Deserialize<'de> for BackendSkip
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackendSkip
impl PartialEq for BackendSkip
Source§impl Serialize for BackendSkip
impl Serialize for BackendSkip
impl Eq for BackendSkip
impl StructuralPartialEq for BackendSkip
Auto Trait Implementations§
impl Freeze for BackendSkip
impl RefUnwindSafe for BackendSkip
impl Send for BackendSkip
impl Sync for BackendSkip
impl Unpin for BackendSkip
impl UnwindSafe for BackendSkip
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more