#[non_exhaustive]pub enum CommandEncoderError {
Invalid,
NotRecording,
Device(DeviceError),
Locked,
InvalidColorAttachment(ColorAttachmentError),
InvalidResource(InvalidResourceError),
}
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.
Invalid
NotRecording
Device(DeviceError)
Locked
InvalidColorAttachment(ColorAttachmentError)
InvalidResource(InvalidResourceError)
Trait Implementations§
Source§impl Clone for CommandEncoderError
impl Clone for CommandEncoderError
Source§fn clone(&self) -> CommandEncoderError
fn clone(&self) -> CommandEncoderError
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 CommandEncoderError
impl Debug for CommandEncoderError
Source§impl Display for CommandEncoderError
impl Display for CommandEncoderError
Source§impl Error for CommandEncoderError
impl Error for CommandEncoderError
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 From<ColorAttachmentError> for CommandEncoderError
impl From<ColorAttachmentError> for CommandEncoderError
Source§fn from(source: ColorAttachmentError) -> Self
fn from(source: ColorAttachmentError) -> Self
Converts to this type from the input type.
Source§impl From<CommandEncoderError> for ClearError
impl From<CommandEncoderError> for ClearError
Source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<CommandEncoderError> for ComputePassErrorInner
impl From<CommandEncoderError> for ComputePassErrorInner
Source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<CommandEncoderError> for CopyError
impl From<CommandEncoderError> for CopyError
Source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
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<CommandEncoderError> for QueueSubmitError
impl From<CommandEncoderError> for QueueSubmitError
Source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<CommandEncoderError> for RenderPassErrorInner
impl From<CommandEncoderError> for RenderPassErrorInner
Source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for CommandEncoderError
impl From<DeviceError> for CommandEncoderError
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidResourceError> for CommandEncoderError
impl From<InvalidResourceError> for CommandEncoderError
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandEncoderError
impl RefUnwindSafe for CommandEncoderError
impl Send for CommandEncoderError
impl Sync for CommandEncoderError
impl Unpin for CommandEncoderError
impl UnwindSafe for CommandEncoderError
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