#[non_exhaustive]pub enum ManagedTextureError {
ForeignContext {
expected: ContextId,
actual: ContextId,
},
UnknownSlot(ManagedTextureId),
StaleGeneration(ManagedTextureId),
Retiring(ManagedTextureId),
AlreadyRetiring(ManagedTextureId),
AlreadyRemoved(ManagedTextureId),
ForeignFontAtlas,
DuplicateFeedback(ManagedTextureId),
InvalidFeedbackStatus {
id: ManagedTextureId,
status: TextureStatus,
},
}Expand description
Failure to access or retire a Context-owned managed 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.
ForeignContext
The handle belongs to another Context.
Fields
UnknownSlot(ManagedTextureId)
The handle does not identify a slot allocated by this Context.
StaleGeneration(ManagedTextureId)
The slot has been reused for a newer texture generation.
Retiring(ManagedTextureId)
Removal has started and new drawing or mutation is no longer accepted.
AlreadyRetiring(ManagedTextureId)
Removal was already requested and is waiting for renderer retirement.
AlreadyRemoved(ManagedTextureId)
The texture was already fully removed.
ForeignFontAtlas
An atlas-backed texture was used with a Context that does not own that atlas.
DuplicateFeedback(ManagedTextureId)
One feedback batch addressed the same texture more than once.
InvalidFeedbackStatus
Renderer feedback may acknowledge only an uploaded or destroyed texture.
Fields
§
id: ManagedTextureIdTexture addressed by the feedback.
§
status: TextureStatusStatus rejected before native mutation.
Trait Implementations§
Source§impl Clone for ManagedTextureError
impl Clone for ManagedTextureError
Source§fn clone(&self) -> ManagedTextureError
fn clone(&self) -> ManagedTextureError
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 ManagedTextureError
Source§impl Debug for ManagedTextureError
impl Debug for ManagedTextureError
Source§impl Display for ManagedTextureError
impl Display for ManagedTextureError
impl Eq for ManagedTextureError
Source§impl Error for ManagedTextureError
impl Error for ManagedTextureError
1.30.0 · 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 SnapshotError
impl From<ManagedTextureError> for SnapshotError
Source§fn from(source: ManagedTextureError) -> Self
fn from(source: ManagedTextureError) -> Self
Converts to this type from the input type.
Source§impl From<ManagedTextureError> for RendererConsumerError
impl From<ManagedTextureError> for RendererConsumerError
Source§fn from(source: ManagedTextureError) -> Self
fn from(source: ManagedTextureError) -> Self
Converts to this type from the input type.
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 PartialEq for ManagedTextureError
impl PartialEq for ManagedTextureError
impl StructuralPartialEq for ManagedTextureError
Auto Trait Implementations§
impl Freeze for ManagedTextureError
impl RefUnwindSafe for ManagedTextureError
impl Send for ManagedTextureError
impl Sync for ManagedTextureError
impl Unpin for ManagedTextureError
impl UnsafeUnpin for ManagedTextureError
impl UnwindSafe for ManagedTextureError
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