pub enum PlatformError {
WindowNotFound(u64),
InitializationFailed(String),
SurfaceError(String),
Unsupported(String),
}Expand description
Unified error type returned by cross-platform OS window and rendering operations.
Variants§
WindowNotFound(u64)
Referenced window handle does not exist or was closed.
InitializationFailed(String)
Native OS API initialization or resource creation failed.
SurfaceError(String)
Surface presentation or GPU submission failed.
Unsupported(String)
Requested operation is unsupported on the active platform.
Trait Implementations§
Source§impl Clone for PlatformError
impl Clone for PlatformError
Source§impl Debug for PlatformError
impl Debug for PlatformError
Source§impl Display for PlatformError
Display formatting for PlatformError.
impl Display for PlatformError
Display formatting for PlatformError.
impl Eq for PlatformError
Source§impl Error for PlatformError
Standard Error marker implementation for PlatformError.
impl Error for PlatformError
Standard Error marker implementation for PlatformError.
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 PartialEq for PlatformError
impl PartialEq for PlatformError
impl StructuralPartialEq for PlatformError
Auto Trait Implementations§
impl Forget for PlatformError
impl Freeze for PlatformError
impl Move for PlatformError
impl RefUnwindSafe for PlatformError
impl Send for PlatformErrorwhere
RawVecInner: Send,
impl Sync for PlatformErrorwhere
RawVecInner: Sync,
impl Unpin for PlatformError
impl UnsafeUnpin for PlatformError
impl UnwindSafe for PlatformErrorwhere
RawVecInner: UnwindSafe,
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