pub struct Result(/* private fields */);Expand description
Implementations§
Source§impl Result
impl Result
pub fn result(self) -> Result<(), Result>
pub fn result_with_success<T>(self, v: T) -> Result<T, Result>
pub unsafe fn assume_init_on_success<T>( self, v: MaybeUninit<T>, ) -> Result<T, Result>
Source§impl Result
impl Result
Sourcepub const EVENT_RESET: Result
pub const EVENT_RESET: Result
An event is unsignaled
Sourcepub const INCOMPLETE: Result
pub const INCOMPLETE: Result
A return array was too small for the result
Sourcepub const ERROR_OUT_OF_HOST_MEMORY: Result
pub const ERROR_OUT_OF_HOST_MEMORY: Result
A host memory allocation has failed
Sourcepub const ERROR_OUT_OF_DEVICE_MEMORY: Result
pub const ERROR_OUT_OF_DEVICE_MEMORY: Result
A device memory allocation has failed
Sourcepub const ERROR_INITIALIZATION_FAILED: Result
pub const ERROR_INITIALIZATION_FAILED: Result
Initialization of an object has failed
Sourcepub const ERROR_DEVICE_LOST: Result
pub const ERROR_DEVICE_LOST: Result
The logical device has been lost. See https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#devsandqueues-lost-device
Sourcepub const ERROR_MEMORY_MAP_FAILED: Result
pub const ERROR_MEMORY_MAP_FAILED: Result
Mapping of a memory object has failed
Sourcepub const ERROR_LAYER_NOT_PRESENT: Result
pub const ERROR_LAYER_NOT_PRESENT: Result
Layer specified does not exist
Sourcepub const ERROR_EXTENSION_NOT_PRESENT: Result
pub const ERROR_EXTENSION_NOT_PRESENT: Result
Extension specified does not exist
Sourcepub const ERROR_FEATURE_NOT_PRESENT: Result
pub const ERROR_FEATURE_NOT_PRESENT: Result
Requested feature is not available on this device
Sourcepub const ERROR_INCOMPATIBLE_DRIVER: Result
pub const ERROR_INCOMPATIBLE_DRIVER: Result
Unable to find a Vulkan driver
Sourcepub const ERROR_TOO_MANY_OBJECTS: Result
pub const ERROR_TOO_MANY_OBJECTS: Result
Too many objects of the type have already been created
Sourcepub const ERROR_FORMAT_NOT_SUPPORTED: Result
pub const ERROR_FORMAT_NOT_SUPPORTED: Result
Requested format is not supported on this device
Sourcepub const ERROR_FRAGMENTED_POOL: Result
pub const ERROR_FRAGMENTED_POOL: Result
A requested pool allocation has failed due to fragmentation of the pool’s memory
Sourcepub const ERROR_UNKNOWN: Result
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’
impl Result
Generated from ‘VK_KHR_surface’
pub const ERROR_SURFACE_LOST_KHR: Result
pub const ERROR_NATIVE_WINDOW_IN_USE_KHR: Result
Source§impl Result
Generated from ‘VK_KHR_swapchain’
impl Result
Generated from ‘VK_KHR_swapchain’
pub const SUBOPTIMAL_KHR: Result
pub const ERROR_OUT_OF_DATE_KHR: Result
Source§impl Result
Generated from ‘VK_KHR_display_swapchain’
impl Result
Generated from ‘VK_KHR_display_swapchain’
pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: Result
Source§impl Result
Generated from ‘VK_EXT_debug_report’
impl Result
Generated from ‘VK_EXT_debug_report’
pub const ERROR_VALIDATION_FAILED_EXT: Result
Source§impl Result
Generated from ‘VK_NV_glsl_shader’
impl Result
Generated from ‘VK_NV_glsl_shader’
pub const ERROR_INVALID_SHADER_NV: Result
Source§impl Result
Generated from ‘VK_KHR_video_queue’
impl Result
Generated from ‘VK_KHR_video_queue’
pub const ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR: Result
pub const ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: Result
pub const ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR: Result
pub const ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR: Result
pub const ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR: Result
pub const ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR: Result
Source§impl Result
Generated from ‘VK_KHR_maintenance1’
impl Result
Generated from ‘VK_KHR_maintenance1’
pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Result = Self::ERROR_OUT_OF_POOL_MEMORY
Source§impl Result
Generated from ‘VK_KHR_external_memory’
impl Result
Generated from ‘VK_KHR_external_memory’
pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Result = Self::ERROR_INVALID_EXTERNAL_HANDLE
Source§impl Result
Generated from ‘VK_EXT_descriptor_indexing’
impl Result
Generated from ‘VK_EXT_descriptor_indexing’
pub const ERROR_FRAGMENTATION_EXT: Result = Self::ERROR_FRAGMENTATION
Source§impl Result
Generated from ‘VK_EXT_global_priority’
impl Result
Generated from ‘VK_EXT_global_priority’
pub const ERROR_NOT_PERMITTED_EXT: Result = Self::ERROR_NOT_PERMITTED_KHR
Source§impl Result
Generated from ‘VK_KHR_global_priority’
impl Result
Generated from ‘VK_KHR_global_priority’
pub const ERROR_NOT_PERMITTED_KHR: Result
Source§impl Result
Generated from ‘VK_EXT_buffer_device_address’
impl Result
Generated from ‘VK_EXT_buffer_device_address’
pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Result = Self::ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS
Source§impl Result
Generated from ‘VK_KHR_buffer_device_address’
impl Result
Generated from ‘VK_KHR_buffer_device_address’
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’
impl Result
Generated from ‘VK_KHR_deferred_host_operations’
pub const THREAD_IDLE_KHR: Result
pub const THREAD_DONE_KHR: Result
pub const OPERATION_DEFERRED_KHR: Result
pub const OPERATION_NOT_DEFERRED_KHR: Result
Source§impl Result
Generated from ‘VK_EXT_pipeline_creation_cache_control’
impl Result
Generated from ‘VK_EXT_pipeline_creation_cache_control’
pub const PIPELINE_COMPILE_REQUIRED_EXT: Result = Self::PIPELINE_COMPILE_REQUIRED
pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Result = Self::PIPELINE_COMPILE_REQUIRED
Source§impl Result
Generated from ‘VK_EXT_image_compression_control’
impl Result
Generated from ‘VK_EXT_image_compression_control’
pub const ERROR_COMPRESSION_EXHAUSTED_EXT: Result
Source§impl Result
Generated from ‘VK_EXT_shader_object’
impl Result
Generated from ‘VK_EXT_shader_object’
pub const ERROR_INCOMPATIBLE_SHADER_BINARY_EXT: Result
Source§impl Result
Generated from ‘VK_VERSION_1_1’
impl Result
Generated from ‘VK_VERSION_1_1’
pub const ERROR_OUT_OF_POOL_MEMORY: Result
pub const ERROR_INVALID_EXTERNAL_HANDLE: Result
Source§impl Result
Generated from ‘VK_VERSION_1_2’
impl Result
Generated from ‘VK_VERSION_1_2’
pub const ERROR_FRAGMENTATION: Result
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Result
Trait Implementations§
Source§impl Error for Result
impl Error for Result
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl Ord for Result
impl Ord for Result
Source§impl PartialOrd for Result
impl PartialOrd for Result
impl Copy for Result
impl Eq for Result
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.