Struct ash::vk::enums::Result

source ·
#[repr(transparent)]
pub struct Result(pub(crate) i32);
Expand description

Tuple Fields§

§0: i32

Implementations§

source§

impl Result

source

pub fn result(self) -> VkResult<()>

source

pub fn result_with_success<T>(self, v: T) -> VkResult<T>

source

pub unsafe fn assume_init_on_success<T>(self, v: MaybeUninit<T>) -> VkResult<T>

source

pub unsafe fn set_vec_len_on_success<T>( self, v: Vec<T>, len: usize, ) -> VkResult<Vec<T>>

source§

impl Result

source

pub const fn from_raw(x: i32) -> Self

source

pub const fn as_raw(self) -> i32

source§

impl Result

source

pub const SUCCESS: Self = _

Command completed successfully

source

pub const NOT_READY: Self = _

A fence or query has not yet completed

source

pub const TIMEOUT: Self = _

A wait operation has not completed in the specified time

source

pub const EVENT_SET: Self = _

An event is signaled

source

pub const EVENT_RESET: Self = _

An event is unsignaled

source

pub const INCOMPLETE: Self = _

A return array was too small for the result

source

pub const ERROR_OUT_OF_HOST_MEMORY: Self = _

A host memory allocation has failed

source

pub const ERROR_OUT_OF_DEVICE_MEMORY: Self = _

A device memory allocation has failed

source

pub const ERROR_INITIALIZATION_FAILED: Self = _

Initialization of an object has failed

source

pub const ERROR_DEVICE_LOST: Self = _

source

pub const ERROR_MEMORY_MAP_FAILED: Self = _

Mapping of a memory object has failed

source

pub const ERROR_LAYER_NOT_PRESENT: Self = _

Layer specified does not exist

source

pub const ERROR_EXTENSION_NOT_PRESENT: Self = _

Extension specified does not exist

source

pub const ERROR_FEATURE_NOT_PRESENT: Self = _

Requested feature is not available on this device

source

pub const ERROR_INCOMPATIBLE_DRIVER: Self = _

Unable to find a Vulkan driver

source

pub const ERROR_TOO_MANY_OBJECTS: Self = _

Too many objects of the type have already been created

source

pub const ERROR_FORMAT_NOT_SUPPORTED: Self = _

Requested format is not supported on this device

source

pub const ERROR_FRAGMENTED_POOL: Self = _

A requested pool allocation has failed due to fragmentation of the pool’s memory

source

pub const ERROR_UNKNOWN: Self = _

An unknown error has occurred, due to an implementation or application bug

source§

impl Result

Generated from ‘VK_KHR_surface’

source§

impl Result

Generated from ‘VK_KHR_swapchain’

source

pub const SUBOPTIMAL_KHR: Self = _

source

pub const ERROR_OUT_OF_DATE_KHR: Self = _

source§

impl Result

Generated from ‘VK_KHR_display_swapchain’

source§

impl Result

Generated from ‘VK_EXT_debug_report’

source§

impl Result

Generated from ‘VK_NV_glsl_shader’

source

pub const ERROR_INVALID_SHADER_NV: Self = _

source§

impl Result

Generated from ‘VK_KHR_video_queue’

source§

impl Result

Generated from ‘VK_KHR_maintenance1’

source

pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Self = Self::ERROR_OUT_OF_POOL_MEMORY

source§

impl Result

Generated from ‘VK_KHR_external_memory’

source

pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Self = Self::ERROR_INVALID_EXTERNAL_HANDLE

source§

impl Result

Generated from ‘VK_EXT_image_drm_format_modifier’

source§

impl Result

Generated from ‘VK_EXT_descriptor_indexing’

source

pub const ERROR_FRAGMENTATION_EXT: Self = Self::ERROR_FRAGMENTATION

source§

impl Result

Generated from ‘VK_EXT_global_priority’

source

pub const ERROR_NOT_PERMITTED_EXT: Self = Self::ERROR_NOT_PERMITTED_KHR

source§

impl Result

Generated from ‘VK_KHR_global_priority’

source

pub const ERROR_NOT_PERMITTED_KHR: Self = _

source§

impl Result

Generated from ‘VK_EXT_buffer_device_address’

source

pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Self = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS

source§

impl Result

Generated from ‘VK_EXT_full_screen_exclusive’

source§

impl Result

Generated from ‘VK_KHR_buffer_device_address’

source

pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR: Self = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS

source§

impl Result

Generated from ‘VK_KHR_deferred_host_operations’

source

pub const THREAD_IDLE_KHR: Self = _

source

pub const THREAD_DONE_KHR: Self = _

source

pub const OPERATION_DEFERRED_KHR: Self = _

source

pub const OPERATION_NOT_DEFERRED_KHR: Self = _

source§

impl Result

Generated from ‘VK_EXT_pipeline_creation_cache_control’

source

pub const PIPELINE_COMPILE_REQUIRED_EXT: Self = Self::PIPELINE_COMPILE_REQUIRED

source

pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self = Self::PIPELINE_COMPILE_REQUIRED

source§

impl Result

Generated from ‘VK_KHR_video_encode_queue’

source§

impl Result

Generated from ‘VK_EXT_image_compression_control’

source§

impl Result

Generated from ‘VK_EXT_shader_object’

source§

impl Result

Generated from ‘VK_VERSION_1_1’

source§

impl Result

Generated from ‘VK_VERSION_1_2’

source§

impl Result

Generated from ‘VK_VERSION_1_3’

Trait Implementations§

source§

impl Clone for Result

source§

fn clone(&self) -> Result

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 Result

source§

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

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

impl Default for Result

source§

fn default() -> Result

Returns the “default value” for a type. Read more
source§

impl Display for Result

source§

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

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

impl Error for Result

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Hash for Result

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 Ord for Result

source§

fn cmp(&self, other: &Result) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Result

source§

fn eq(&self, other: &Result) -> 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 PartialOrd for Result

source§

fn partial_cmp(&self, other: &Result) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Result

source§

impl Eq for Result

source§

impl StructuralPartialEq for Result

Auto Trait Implementations§

§

impl Freeze for Result

§

impl RefUnwindSafe for Result

§

impl Send for Result

§

impl Sync for Result

§

impl Unpin for Result

§

impl UnwindSafe for Result

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.