#[non_exhaustive]pub enum ManagedTextureMutationError {
Access(ManagedTextureError),
Data(TextureDataError),
}Expand description
Failure to access or mutate a Context-owned texture.
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.
Access(ManagedTextureError)
The managed handle could not be accessed.
Data(TextureDataError)
The requested pixel mutation was invalid.
Trait Implementations§
Source§impl Clone for ManagedTextureMutationError
impl Clone for ManagedTextureMutationError
Source§fn clone(&self) -> ManagedTextureMutationError
fn clone(&self) -> ManagedTextureMutationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ManagedTextureMutationError
Source§impl Debug for ManagedTextureMutationError
impl Debug for ManagedTextureMutationError
impl Eq for ManagedTextureMutationError
Source§impl Error for ManagedTextureMutationError
impl Error for ManagedTextureMutationError
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<ManagedTextureError> for ManagedTextureMutationError
impl From<ManagedTextureError> for ManagedTextureMutationError
Source§fn from(source: ManagedTextureError) -> Self
fn from(source: ManagedTextureError) -> Self
Converts to this type from the input type.
Source§impl From<TextureDataError> for ManagedTextureMutationError
impl From<TextureDataError> for ManagedTextureMutationError
Source§fn from(source: TextureDataError) -> Self
fn from(source: TextureDataError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ManagedTextureMutationError
Auto Trait Implementations§
impl Freeze for ManagedTextureMutationError
impl RefUnwindSafe for ManagedTextureMutationError
impl Send for ManagedTextureMutationError
impl Sync for ManagedTextureMutationError
impl Unpin for ManagedTextureMutationError
impl UnsafeUnpin for ManagedTextureMutationError
impl UnwindSafe for ManagedTextureMutationError
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