#[repr(transparent)]pub struct Result(_);
Expand description
Implementations
sourceimpl Result
impl Result
sourcepub const EVENT_RESET: Self
pub const EVENT_RESET: Self
An event is unsignaled
sourcepub const INCOMPLETE: Self
pub const INCOMPLETE: Self
A return array was too small for the result
sourcepub const ERROR_OUT_OF_HOST_MEMORY: Self
pub const ERROR_OUT_OF_HOST_MEMORY: Self
A host memory allocation has failed
sourcepub const ERROR_OUT_OF_DEVICE_MEMORY: Self
pub const ERROR_OUT_OF_DEVICE_MEMORY: Self
A device memory allocation has failed
sourcepub const ERROR_INITIALIZATION_FAILED: Self
pub const ERROR_INITIALIZATION_FAILED: Self
Initialization of a object has failed
sourcepub const ERROR_DEVICE_LOST: Self
pub const ERROR_DEVICE_LOST: Self
The logical device has been lost. See <
sourcepub const ERROR_MEMORY_MAP_FAILED: Self
pub const ERROR_MEMORY_MAP_FAILED: Self
Mapping of a memory object has failed
sourcepub const ERROR_LAYER_NOT_PRESENT: Self
pub const ERROR_LAYER_NOT_PRESENT: Self
Layer specified does not exist
sourcepub const ERROR_EXTENSION_NOT_PRESENT: Self
pub const ERROR_EXTENSION_NOT_PRESENT: Self
Extension specified does not exist
sourcepub const ERROR_FEATURE_NOT_PRESENT: Self
pub const ERROR_FEATURE_NOT_PRESENT: Self
Requested feature is not available on this device
sourcepub const ERROR_INCOMPATIBLE_DRIVER: Self
pub const ERROR_INCOMPATIBLE_DRIVER: Self
Unable to find a Vulkan driver
sourcepub const ERROR_TOO_MANY_OBJECTS: Self
pub const ERROR_TOO_MANY_OBJECTS: Self
Too many objects of the type have already been created
sourcepub const ERROR_FORMAT_NOT_SUPPORTED: Self
pub const ERROR_FORMAT_NOT_SUPPORTED: Self
Requested format is not supported on this device
sourcepub const ERROR_FRAGMENTED_POOL: Self
pub const ERROR_FRAGMENTED_POOL: Self
A requested pool allocation has failed due to fragmentation of the pool’s memory
sourcepub const ERROR_UNKNOWN: Self
pub const ERROR_UNKNOWN: Self
An unknown error has occurred, due to an implementation or application bug
sourceimpl Result
impl Result
Generated from ‘VK_KHR_surface’
pub const ERROR_SURFACE_LOST_KHR: Self
pub const ERROR_NATIVE_WINDOW_IN_USE_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_KHR_swapchain’
pub const SUBOPTIMAL_KHR: Self
pub const ERROR_OUT_OF_DATE_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_KHR_display_swapchain’
pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_debug_report’
pub const ERROR_VALIDATION_FAILED_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_KHR_maintenance1’
pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_KHR_external_memory’
pub const ERROR_INVALID_EXTERNAL_HANDLE_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_image_drm_format_modifier’
pub const ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_descriptor_indexing’
pub const ERROR_FRAGMENTATION_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_global_priority’
pub const ERROR_NOT_PERMITTED_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_buffer_device_address’
pub const ERROR_INVALID_DEVICE_ADDRESS_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_full_screen_exclusive’
pub const ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_KHR_buffer_device_address’
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_KHR_deferred_host_operations’
pub const THREAD_IDLE_KHR: Self
pub const THREAD_DONE_KHR: Self
pub const OPERATION_DEFERRED_KHR: Self
pub const OPERATION_NOT_DEFERRED_KHR: Self
sourceimpl Result
impl Result
Generated from ‘VK_EXT_pipeline_creation_cache_control’
pub const PIPELINE_COMPILE_REQUIRED_EXT: Self
pub const ERROR_PIPELINE_COMPILE_REQUIRED_EXT: Self
sourceimpl Result
impl Result
Generated from ‘VK_VERSION_1_1’
pub const ERROR_OUT_OF_POOL_MEMORY: Self
pub const ERROR_INVALID_EXTERNAL_HANDLE: Self
sourceimpl Result
impl Result
Generated from ‘VK_VERSION_1_2’
pub const ERROR_FRAGMENTATION: Self
pub const ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: Self
Trait Implementations
sourceimpl Error for Result
impl Error for Result
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Ord for Result
impl Ord for Result
sourceimpl PartialOrd<Result> for Result
impl PartialOrd<Result> for Result
sourcefn partial_cmp(&self, other: &Result) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn le(&self, other: &Rhs) -> bool
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
impl Copy for Result
impl Eq for Result
impl StructuralEq for Result
impl StructuralPartialEq for Result
Auto Trait Implementations
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more