Skip to main content

Result

Struct Result 

Source
pub struct Result(/* private fields */);
Expand description

Implementations§

Source§

impl Result

Source

pub const SUCCESS: Result

Command completed successfully

Source

pub const NOT_READY: Result

A fence or query has not yet completed

Source

pub const TIMEOUT: Result

A wait operation has not completed in the specified time

Source

pub const EVENT_SET: Result

An event is signaled

Source

pub const EVENT_RESET: Result

An event is unsignaled

Source

pub const INCOMPLETE: Result

A return array was too small for the result

Source

pub const ERROR_OUT_OF_HOST_MEMORY: Result

A host memory allocation has failed

Source

pub const ERROR_OUT_OF_DEVICE_MEMORY: Result

A device memory allocation has failed

Source

pub const ERROR_INITIALIZATION_FAILED: Result

Initialization of an object has failed

Source

pub const ERROR_DEVICE_LOST: Result

The logical device has been lost. See devsandqueues-lost-device

Source

pub const ERROR_MEMORY_MAP_FAILED: Result

Mapping of a memory object has failed

Source

pub const ERROR_LAYER_NOT_PRESENT: Result

Layer specified does not exist

Source

pub const ERROR_EXTENSION_NOT_PRESENT: Result

Extension specified does not exist

Source

pub const ERROR_FEATURE_NOT_PRESENT: Result

Requested feature is not available on this device

Source

pub const ERROR_INCOMPATIBLE_DRIVER: Result

Unable to find a Vulkan driver

Source

pub const ERROR_TOO_MANY_OBJECTS: Result

Too many objects of the type have already been created

Source

pub const ERROR_FORMAT_NOT_SUPPORTED: Result

Requested format is not supported on this device

Source

pub const ERROR_FRAGMENTED_POOL: Result

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

Source

pub const ERROR_UNKNOWN: Result

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

Source

pub const ERROR_VALIDATION_FAILED: Result

Source

pub const ERROR_OUT_OF_POOL_MEMORY: Result

Source

pub const ERROR_INVALID_EXTERNAL_HANDLE: Result

Source

pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Result

Source

pub const ERROR_FRAGMENTATION: Result

Source

pub const PIPELINE_COMPILE_REQUIRED: Result

Source

pub const ERROR_NOT_PERMITTED: Result

Source

pub const ERROR_INVALID_PIPELINE_CACHE_DATA: Result

Source

pub const ERROR_NO_PIPELINE_MATCH: Result

Source

pub const ERROR_SURFACE_LOST: Result

Source

pub const ERROR_NATIVE_WINDOW_IN_USE: Result

Source

pub const SUBOPTIMAL: Result

Source

pub const ERROR_OUT_OF_DATE: Result

Source

pub const ERROR_INCOMPATIBLE_DISPLAY: Result

Source

pub const ERROR_INVALID_SHADER: Result

Source

pub const ERROR_IMAGE_USAGE_NOT_SUPPORTED: Result

Source

pub const ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED: Result

Source

pub const ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED: Result

Source

pub const ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED: Result

Source

pub const ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED: Result

Source

pub const ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED: Result

Source

pub const ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT: Result

Source

pub const ERROR_PRESENT_TIMING_QUEUE_FULL: Result

Source

pub const ERROR_INVALID_DEVICE_ADDRESS: Result = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS

Source

pub const ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST: Result

Source

pub const THREAD_IDLE: Result

Source

pub const THREAD_DONE: Result

Source

pub const OPERATION_DEFERRED: Result

Source

pub const OPERATION_NOT_DEFERRED: Result

Source

pub const ERROR_PIPELINE_COMPILE_REQUIRED: Result = Self::PIPELINE_COMPILE_REQUIRED

Source

pub const ERROR_INVALID_VIDEO_STD_PARAMETERS: Result

Source

pub const ERROR_COMPRESSION_EXHAUSTED: Result

Source

pub const INCOMPATIBLE_SHADER_BINARY: Result

Source

pub const ERROR_INCOMPATIBLE_SHADER_BINARY: Result = Self::INCOMPATIBLE_SHADER_BINARY

Source

pub const PIPELINE_BINARY_MISSING: Result

Source

pub const ERROR_NOT_ENOUGH_SPACE: Result

Source

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

Source

pub const fn as_raw(self) -> i32

Trait Implementations§

Source§

impl Clone for Result

Source§

fn clone(&self) -> Result

Returns a duplicate 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<(), Error>

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, f: &mut Formatter<'_>) -> Result<(), Error>

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

Returns 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 From<Result> for SurfaceError

Source§

fn from(e: Result) -> Self

Converts to this type from the input type.
Source§

impl From<Result> for VkError

Source§

fn from(r: Result) -> Self

Converts to this type from the input type.
Source§

impl Hash for Result

Source§

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

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,

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

impl PartialEq for Result

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

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

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

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

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§

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

Source§

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>,

Source§

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>,

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.