Enum wgpu::core::command::QueryError
source · #[non_exhaustive]pub enum QueryError {
Device(DeviceError),
Encoder(CommandEncoderError),
Use(QueryUseError),
Resolve(ResolveError),
InvalidBuffer(Id<Buffer<Api>>),
InvalidQuerySet(Id<QuerySet<Api>>),
}
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)
Use(QueryUseError)
Resolve(ResolveError)
InvalidBuffer(Id<Buffer<Api>>)
InvalidQuerySet(Id<QuerySet<Api>>)
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) -> QueryError
fn from(source: CommandEncoderError) -> QueryError
Converts to this type from the input type.
source§impl From<DeviceError> for QueryError
impl From<DeviceError> for QueryError
source§fn from(source: DeviceError) -> QueryError
fn from(source: DeviceError) -> QueryError
Converts to this type from the input type.
source§impl From<QueryUseError> for QueryError
impl From<QueryUseError> for QueryError
source§fn from(source: QueryUseError) -> QueryError
fn from(source: QueryUseError) -> QueryError
Converts to this type from the input type.
source§impl From<ResolveError> for QueryError
impl From<ResolveError> for QueryError
source§fn from(source: ResolveError) -> QueryError
fn from(source: ResolveError) -> QueryError
Converts to this type from the input type.
source§impl PrettyError for QueryError
impl PrettyError for QueryError
fn fmt_pretty(&self, fmt: &mut ErrorFormatter<'_>)
Auto Trait Implementations§
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