Enum ccthw::graphics::vulkan_api::SwapchainStatus
source · pub enum SwapchainStatus {
Index(usize),
NeedsRebuild,
}
Expand description
Indicates that the swapchain needs a rebuild, or that the image was acquired successfully.
Variants§
Index(usize)
Completed the operation with the given swapchain index.
NeedsRebuild
Indicates that the swapchain needs to be rebuilt.
Trait Implementations§
source§impl Clone for SwapchainStatus
impl Clone for SwapchainStatus
source§fn clone(&self) -> SwapchainStatus
fn clone(&self) -> SwapchainStatus
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 SwapchainStatus
impl Debug for SwapchainStatus
source§impl Ord for SwapchainStatus
impl Ord for SwapchainStatus
source§fn cmp(&self, other: &SwapchainStatus) -> Ordering
fn cmp(&self, other: &SwapchainStatus) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SwapchainStatus> for SwapchainStatus
impl PartialEq<SwapchainStatus> for SwapchainStatus
source§fn eq(&self, other: &SwapchainStatus) -> bool
fn eq(&self, other: &SwapchainStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SwapchainStatus> for SwapchainStatus
impl PartialOrd<SwapchainStatus> for SwapchainStatus
source§fn partial_cmp(&self, other: &SwapchainStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &SwapchainStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SwapchainStatus
impl Eq for SwapchainStatus
impl StructuralEq for SwapchainStatus
impl StructuralPartialEq for SwapchainStatus
Auto Trait Implementations§
impl RefUnwindSafe for SwapchainStatus
impl Send for SwapchainStatus
impl Sync for SwapchainStatus
impl Unpin for SwapchainStatus
impl UnwindSafe for SwapchainStatus
Blanket Implementations§
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.