#[non_exhaustive]pub enum D3D12Error {
NotAvailable,
UnsupportedFormat,
CreationFailed,
}Available on crate feature
v4_20 only.Expand description
Error enumeration for GTK’s Direct3D 12 integration.
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.
NotAvailable
D3D12 support is not available, because the OS is not Windows, the Windows version is not recent enough, or it was explicitly disabled at compile- or runtime
UnsupportedFormat
The requested format is not supported
CreationFailed
GTK failed to create the resource for other reasons
Trait Implementations§
Source§impl Clone for D3D12Error
impl Clone for D3D12Error
Source§fn clone(&self) -> D3D12Error
fn clone(&self) -> D3D12Error
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 D3D12Error
impl Debug for D3D12Error
Source§impl ErrorDomain for D3D12Error
impl ErrorDomain for D3D12Error
Source§impl Hash for D3D12Error
impl Hash for D3D12Error
Source§impl Ord for D3D12Error
impl Ord for D3D12Error
Source§fn cmp(&self, other: &D3D12Error) -> Ordering
fn cmp(&self, other: &D3D12Error) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for D3D12Error
impl PartialEq for D3D12Error
Source§impl PartialOrd for D3D12Error
impl PartialOrd for D3D12Error
impl Copy for D3D12Error
impl Eq for D3D12Error
impl StructuralPartialEq for D3D12Error
Auto Trait Implementations§
impl Freeze for D3D12Error
impl RefUnwindSafe for D3D12Error
impl Send for D3D12Error
impl Sync for D3D12Error
impl Unpin for D3D12Error
impl UnwindSafe for D3D12Error
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