#[non_exhaustive]pub enum ContextPlatformAttachmentReleaseError {
ContextDropping,
AttachmentInactive,
NotPlatform,
PlatformGenerationMismatch,
ReleaseInProgress,
RendererActive,
}Expand description
Failure to prepare an explicit platform attachment release.
Platform backends must complete this preflight before closing a frame, destroying native windows, or clearing callback state. The returned permit keeps the exact attachment generation reserved until the backend either commits detachment or abandons the transaction.
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.
ContextDropping
Context-owned teardown has already started.
AttachmentInactive
The supplied attachment generation has already detached.
NotPlatform
The supplied attachment does not own the platform role.
PlatformGenerationMismatch
The supplied attachment is not this Context’s active platform generation.
ReleaseInProgress
Another release transaction already reserves this platform generation.
RendererActive
Renderer resources still depend on platform-owned native handles.
Trait Implementations§
Source§impl Clone for ContextPlatformAttachmentReleaseError
impl Clone for ContextPlatformAttachmentReleaseError
Source§fn clone(&self) -> ContextPlatformAttachmentReleaseError
fn clone(&self) -> ContextPlatformAttachmentReleaseError
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 ContextPlatformAttachmentReleaseError
impl Eq for ContextPlatformAttachmentReleaseError
Source§impl Error for ContextPlatformAttachmentReleaseError
impl Error for ContextPlatformAttachmentReleaseError
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()
impl StructuralPartialEq for ContextPlatformAttachmentReleaseError
Auto Trait Implementations§
impl Freeze for ContextPlatformAttachmentReleaseError
impl RefUnwindSafe for ContextPlatformAttachmentReleaseError
impl Send for ContextPlatformAttachmentReleaseError
impl Sync for ContextPlatformAttachmentReleaseError
impl Unpin for ContextPlatformAttachmentReleaseError
impl UnsafeUnpin for ContextPlatformAttachmentReleaseError
impl UnwindSafe for ContextPlatformAttachmentReleaseError
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