pub enum FullScreenExclusiveError {
OomError(OomError),
InitializationFailed,
SurfaceLost,
DoubleAcquire,
DoubleRelease,
NotApplicationControlled,
}
Expand description
Error that can happen when calling Swapchain::acquire_full_screen_exclusive
or
Swapchain::release_full_screen_exclusive
.
Variants§
OomError(OomError)
Not enough memory.
InitializationFailed
Operation could not be completed for driver specific reasons.
SurfaceLost
The surface is no longer accessible and must be recreated.
DoubleAcquire
Full-screen exclusivity is already acquired.
DoubleRelease
Full-screen exclusivity is not currently acquired.
NotApplicationControlled
The swapchain is not in full-screen exclusive application controlled mode.
Trait Implementations§
source§impl Clone for FullScreenExclusiveError
impl Clone for FullScreenExclusiveError
source§fn clone(&self) -> FullScreenExclusiveError
fn clone(&self) -> FullScreenExclusiveError
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 FullScreenExclusiveError
impl Debug for FullScreenExclusiveError
source§impl Display for FullScreenExclusiveError
impl Display for FullScreenExclusiveError
source§impl Error for FullScreenExclusiveError
impl Error for FullScreenExclusiveError
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<OomError> for FullScreenExclusiveError
impl From<OomError> for FullScreenExclusiveError
source§fn from(err: OomError) -> FullScreenExclusiveError
fn from(err: OomError) -> FullScreenExclusiveError
Converts to this type from the input type.
source§impl From<VulkanError> for FullScreenExclusiveError
impl From<VulkanError> for FullScreenExclusiveError
source§fn from(err: VulkanError) -> FullScreenExclusiveError
fn from(err: VulkanError) -> FullScreenExclusiveError
Converts to this type from the input type.
source§impl PartialEq<FullScreenExclusiveError> for FullScreenExclusiveError
impl PartialEq<FullScreenExclusiveError> for FullScreenExclusiveError
source§fn eq(&self, other: &FullScreenExclusiveError) -> bool
fn eq(&self, other: &FullScreenExclusiveError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.