Enum show_image::error::CreateWindowError
source · pub enum CreateWindowError {
Winit(OsError),
GetDevice(GetDeviceError),
CreateSurface(CreateSurfaceError),
}
Expand description
An error that can occur while creating a new window.
Variants§
Winit(OsError)
The underlying call to winit
reported an error.
GetDevice(GetDeviceError)
Failed to get a suitable GPU device.
CreateSurface(CreateSurfaceError)
Failed to create a surface for drawing.
Trait Implementations§
source§impl Debug for CreateWindowError
impl Debug for CreateWindowError
source§impl Display for CreateWindowError
impl Display for CreateWindowError
source§impl Error for CreateWindowError
impl Error for CreateWindowError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CreateSurfaceError> for CreateWindowError
impl From<CreateSurfaceError> for CreateWindowError
source§fn from(other: CreateSurfaceError) -> Self
fn from(other: CreateSurfaceError) -> Self
Converts to this type from the input type.
source§impl From<GetDeviceError> for CreateWindowError
impl From<GetDeviceError> for CreateWindowError
source§fn from(other: GetDeviceError) -> Self
fn from(other: GetDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateWindowError
impl RefUnwindSafe for CreateWindowError
impl Send for CreateWindowError
impl Sync for CreateWindowError
impl Unpin for CreateWindowError
impl UnwindSafe for CreateWindowError
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