Skip to main content

Result

Struct Result 

Source
#[repr(transparent)]
pub struct Result(pub i32);

Tuple Fields§

§0: i32

Implementations§

Source§

impl Result

Source

pub const SUCCESS: Self

Source

pub const NOT_READY: Self

Source

pub const TIMEOUT: Self

Source

pub const EVENT_SET: Self

Source

pub const EVENT_RESET: Self

Source

pub const INCOMPLETE: Self

Source

pub const ERROR_OUT_OF_HOST_MEMORY: Self

Source

pub const ERROR_OUT_OF_DEVICE_MEMORY: Self

Source

pub const ERROR_INITIALIZATION_FAILED: Self

Source

pub const ERROR_DEVICE_LOST: Self

Source

pub const ERROR_MEMORY_MAP_FAILED: Self

Source

pub const ERROR_LAYER_NOT_PRESENT: Self

Source

pub const ERROR_EXTENSION_NOT_PRESENT: Self

Source

pub const ERROR_FEATURE_NOT_PRESENT: Self

Source

pub const ERROR_INCOMPATIBLE_DRIVER: Self

Source

pub const ERROR_TOO_MANY_OBJECTS: Self

Source

pub const ERROR_FORMAT_NOT_SUPPORTED: Self

Source

pub const ERROR_FRAGMENTED_POOL: Self

Source

pub const ERROR_UNKNOWN: Self

Source

pub const ERROR_VALIDATION_FAILED: Self

Source

pub const ERROR_OUT_OF_POOL_MEMORY: Self

Source

pub const ERROR_INVALID_EXTERNAL_HANDLE: Self

Source

pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self

Source

pub const ERROR_FRAGMENTATION: Self

Source

pub const PIPELINE_COMPILE_REQUIRED: Self

Source

pub const ERROR_NOT_PERMITTED: Self

Source

pub const ERROR_SURFACE_LOST_KHR: Self

Source

pub const ERROR_NATIVE_WINDOW_IN_USE_KHR: Self

Source

pub const SUBOPTIMAL_KHR: Self

Source

pub const ERROR_OUT_OF_DATE_KHR: Self

Source

pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: Self

Source

pub const ERROR_VALIDATION_FAILED_EXT: Self

Source

pub const ERROR_INVALID_SHADER_NV: Self

Source

pub const ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR: Self

Source

pub const ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: Self

Source

pub const ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR: Self

Source

pub const ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR: Self

Source

pub const ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR: Self

Source

pub const ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR: Self

Source

pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Self

Source

pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Self

Source

pub const ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: Self

Source

pub const ERROR_FRAGMENTATION_EXT: Self

Source

pub const ERROR_NOT_PERMITTED_EXT: Self

Source

pub const ERROR_NOT_PERMITTED_KHR: Self

Source

pub const ERROR_PRESENT_TIMING_QUEUE_FULL_EXT: Self

Source

pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Self

Source

pub const ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: Self

Source

pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR: Self

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

pub const PIPELINE_COMPILE_REQUIRED_EXT: Self

Source

pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self

Source

pub const ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR: Self

Source

pub const ERROR_COMPRESSION_EXHAUSTED_EXT: Self

Source

pub const INCOMPATIBLE_SHADER_BINARY_EXT: Self

Source

pub const ERROR_INCOMPATIBLE_SHADER_BINARY_EXT: Self

Source

pub const PIPELINE_BINARY_MISSING_KHR: Self

Source

pub const ERROR_NOT_ENOUGH_SPACE_KHR: Self

Source

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

Source

pub const fn as_raw(self) -> i32

Source

pub const fn empty() -> Self

Source§

impl Result

Source

pub const fn is_success(self) -> bool

Source

pub const fn is_err(self) -> bool

Trait Implementations§

Source§

impl Clone for Result

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Result

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() -> Self

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

impl Eq for Result

Source§

impl From<Result> for CallError

Source§

fn from(r: Result) -> Self

Lift a non-success VkResult into a CallError.

Callers that only expect VK_SUCCESS can use ? on a vk::Result once it is inside a Result<_, CallError> context.

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

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Result

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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 T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.