Struct screen_13::prelude::vk::Result

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

Implementations§

source§

impl Result

source

pub fn result(self) -> Result<(), Result>

source

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

source

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

source§

impl Result

source

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

source

pub const fn as_raw(self) -> i32

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 = _

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§

impl Result

Generated from ‘VK_KHR_surface’

source§

impl Result

Generated from ‘VK_KHR_swapchain’

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§

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: Result = Self::ERROR_OUT_OF_POOL_MEMORY

source§

impl Result

Generated from ‘VK_KHR_external_memory’

source

pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Result = 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: Result = Self::ERROR_FRAGMENTATION

source§

impl Result

Generated from ‘VK_EXT_global_priority’

source

pub const ERROR_NOT_PERMITTED_EXT: Result = Self::ERROR_NOT_PERMITTED_KHR

source§

impl Result

Generated from ‘VK_KHR_global_priority’

source§

impl Result

Generated from ‘VK_EXT_buffer_device_address’

source

pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Result = 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: Result = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS

source§

impl Result

Generated from ‘VK_KHR_deferred_host_operations’

source§

impl Result

Generated from ‘VK_EXT_pipeline_creation_cache_control’

source

pub const PIPELINE_COMPILE_REQUIRED_EXT: Result = Self::PIPELINE_COMPILE_REQUIRED

source

pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Result = 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<(), 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, fmt: &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)>

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>(&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 + 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§

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
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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
§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

§

fn to_smolstr(&self) -> SmolStr

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more