pub enum SurfaceError {
UnsupportedPlatform,
HandleError(HandleError),
Vulkan(Result),
}Expand description
Error returned by surface creation.
§Examples
use vulkan_rust::SurfaceError;
let err = SurfaceError::UnsupportedPlatform;
assert!(err.to_string().contains("unsupported"));Variants§
UnsupportedPlatform
The display/window handle combination is not supported.
HandleError(HandleError)
raw-window-handle returned an error.
Vulkan(Result)
Vulkan error from the surface creation call.
Trait Implementations§
Source§impl Debug for SurfaceError
impl Debug for SurfaceError
Source§impl Display for SurfaceError
impl Display for SurfaceError
Source§impl Error for SurfaceError
impl Error for SurfaceError
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<HandleError> for SurfaceError
impl From<HandleError> for SurfaceError
Source§fn from(e: HandleError) -> Self
fn from(e: HandleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SurfaceError
impl RefUnwindSafe for SurfaceError
impl Send for SurfaceError
impl Sync for SurfaceError
impl Unpin for SurfaceError
impl UnsafeUnpin for SurfaceError
impl UnwindSafe for SurfaceError
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