Enum wgpu_core::command::QueryError
source · #[non_exhaustive]pub enum QueryError {
Device(DeviceError),
Encoder(CommandEncoderError),
MissingFeature(MissingFeatures),
Use(QueryUseError),
Resolve(ResolveError),
DestroyedResource(DestroyedResourceError),
InvalidResource(InvalidResourceError),
}
Expand description
Error encountered when dealing with queries
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.
Device(DeviceError)
Encoder(CommandEncoderError)
MissingFeature(MissingFeatures)
Use(QueryUseError)
Resolve(ResolveError)
DestroyedResource(DestroyedResourceError)
InvalidResource(InvalidResourceError)
Trait Implementations§
source§impl Clone for QueryError
impl Clone for QueryError
source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
Returns a copy 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 QueryError
impl Debug for QueryError
source§impl Display for QueryError
impl Display for QueryError
source§impl Error for QueryError
impl Error for QueryError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<CommandEncoderError> for QueryError
impl From<CommandEncoderError> for QueryError
source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
source§impl From<DestroyedResourceError> for QueryError
impl From<DestroyedResourceError> for QueryError
source§fn from(source: DestroyedResourceError) -> Self
fn from(source: DestroyedResourceError) -> Self
Converts to this type from the input type.
source§impl From<DeviceError> for QueryError
impl From<DeviceError> for QueryError
source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
source§impl From<InvalidResourceError> for QueryError
impl From<InvalidResourceError> for QueryError
source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
source§impl From<MissingFeatures> for QueryError
impl From<MissingFeatures> for QueryError
source§fn from(source: MissingFeatures) -> Self
fn from(source: MissingFeatures) -> Self
Converts to this type from the input type.
source§impl From<QueryUseError> for QueryError
impl From<QueryUseError> for QueryError
source§fn from(source: QueryUseError) -> Self
fn from(source: QueryUseError) -> Self
Converts to this type from the input type.
source§impl From<ResolveError> for QueryError
impl From<ResolveError> for QueryError
source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
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