#[non_exhaustive]pub enum ContextPlatformWindowTeardownError {
ContextDropping,
Reentrant,
AttachmentPreflight(ContextAttachmentTeardownError),
AttachmentPostflight(ContextAttachmentTeardownError),
BeginPanicked,
EndPanicked,
}Expand description
Failure while entering or leaving an explicit platform-window teardown transaction.
Unlike ContextAttachmentTeardownError, this error is returned to the caller of
[crate::Context::destroy_platform_windows] before or after its native operation. It does not
use Context-drop’s fail-stop policy because the caller still owns a live Context.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ContextDropping
The Context is already being dropped.
Reentrant
A platform-window teardown transaction attempted to re-enter itself.
AttachmentPreflight(ContextAttachmentTeardownError)
The active platform attachment rejected the transaction before native teardown began.
AttachmentPostflight(ContextAttachmentTeardownError)
The active platform attachment failed after native teardown completed.
BeginPanicked
The active platform attachment panicked before native teardown began.
EndPanicked
The active platform attachment panicked after native teardown completed.
Trait Implementations§
Source§impl Clone for ContextPlatformWindowTeardownError
impl Clone for ContextPlatformWindowTeardownError
Source§fn clone(&self) -> ContextPlatformWindowTeardownError
fn clone(&self) -> ContextPlatformWindowTeardownError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Eq for ContextPlatformWindowTeardownError
Source§impl Error for ContextPlatformWindowTeardownError
impl Error for ContextPlatformWindowTeardownError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()