Enum sierra::SurfaceError
source · pub enum SurfaceError {
OutOfMemory {
source: OutOfMemory,
},
DeviceLost {
source: DeviceLost,
},
UsageNotSupported {
usage: ImageUsage,
},
SurfaceLost,
FormatUnsupported {
format: Format,
},
PresentModeUnsupported {
mode: PresentMode,
},
AlreadyUsed,
WindowIsInUse,
InitializationFailed,
TooManyAcquired,
NotConfigured,
}
Variants§
OutOfMemory
Fields
§
source: OutOfMemory
DeviceLost
Fields
§
source: DeviceLost
UsageNotSupported
Fields
§
usage: ImageUsage
SurfaceLost
FormatUnsupported
PresentModeUnsupported
Fields
§
mode: PresentMode
AlreadyUsed
WindowIsInUse
InitializationFailed
TooManyAcquired
NotConfigured
Trait Implementations§
source§impl Clone for SurfaceError
impl Clone for SurfaceError
source§fn clone(&self) -> SurfaceError
fn clone(&self) -> SurfaceError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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
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<DeviceLost> for SurfaceError
impl From<DeviceLost> for SurfaceError
source§fn from(source: DeviceLost) -> Self
fn from(source: DeviceLost) -> Self
Converts to this type from the input type.
source§impl From<OutOfMemory> for SurfaceError
impl From<OutOfMemory> for SurfaceError
source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
source§impl From<SurfaceError> for CreateSurfaceError
impl From<SurfaceError> for CreateSurfaceError
source§fn from(source: SurfaceError) -> Self
fn from(source: SurfaceError) -> Self
Converts to this type from the input type.
source§impl PartialEq<SurfaceError> for SurfaceError
impl PartialEq<SurfaceError> for SurfaceError
source§fn eq(&self, other: &SurfaceError) -> bool
fn eq(&self, other: &SurfaceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.