#[non_exhaustive]
pub enum SurfaceApi {
Show 15 variants Headless, DisplayPlane, Android, DirectFB, FuchsiaImagePipe, GgpStreamDescriptor, Ios, MacOs, Metal, QnxScreen, Vi, Wayland, Win32, Xcb, Xlib,
}
Expand description

The windowing API function that was used to construct a surface.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Headless

The surface was constructed using Surface::headless or the vkCreateHeadlessSurfaceEXT Vulkan API function.

§

DisplayPlane

The surface was constructed using Surface::from_display_plane or the vkCreateDisplayPlaneSurfaceKHR Vulkan API function.

§

Android

The surface was constructed using Surface::from_android or the vkCreateAndroidSurfaceKHR Vulkan API function.

§

DirectFB

The surface was constructed using Surface::from_directfb or the vkCreateDirectFBSurfaceEXT Vulkan API function.

§

FuchsiaImagePipe

The surface was constructed using Surface::from_fuchsia_image_pipe or the vkCreateImagePipeSurfaceFUCHSIA Vulkan API function.

§

GgpStreamDescriptor

The surface was constructed using Surface::from_ggp_stream_descriptor or the vkCreateStreamDescriptorSurfaceGGP Vulkan API function.

§

Ios

The surface was constructed using [Surface::from_ios] or the vkCreateIOSSurfaceMVK Vulkan API function.

§

MacOs

The surface was constructed using [Surface::from_mac_os] or the vkCreateMacOSSurfaceMVK Vulkan API function.

§

Metal

The surface was constructed using Surface::from_metal or the vkCreateMetalSurfaceEXT Vulkan API function.

§

QnxScreen

The surface was constructed using Surface::from_qnx_screen or the vkCreateScreenSurfaceQNX Vulkan API function.

§

Vi

The surface was constructed using Surface::from_vi or the vkCreateViSurfaceNN Vulkan API function.

§

Wayland

The surface was constructed using Surface::from_wayland or the vkCreateWaylandSurfaceKHR Vulkan API function.

§

Win32

The surface was constructed using Surface::from_win32 or the vkCreateWin32SurfaceKHR Vulkan API function.

§

Xcb

The surface was constructed using Surface::from_xcb or the vkCreateXcbSurfaceKHR Vulkan API function.

§

Xlib

The surface was constructed using Surface::from_xlib or the vkCreateXlibSurfaceKHR Vulkan API function.

Trait Implementations§

source§

impl Clone for SurfaceApi

source§

fn clone(&self) -> SurfaceApi

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SurfaceApi

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for SurfaceApi

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for SurfaceApi

source§

fn eq(&self, other: &SurfaceApi) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<RawWindowHandle> for SurfaceApi

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_from(handle: RawWindowHandle) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for SurfaceApi

source§

impl Eq for SurfaceApi

source§

impl StructuralEq for SurfaceApi

source§

impl StructuralPartialEq for SurfaceApi

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.