Realm

vk::load · Structs · I1

Retains a created handle and its library when automatic rollback is impossible. The native object still needs explicit cleanup; dropping this error performs no destruction. Keep its parent and original allocator callback state alive.

StRustExperimental

Stvk::load::InitializationFailure

pub struct InitializationFailure { /* private fields */ }
Retains a created handle and its library when automatic rollback is impossible. The native object still needs explicit cleanup; dropping this error performs no destruction. Keep its parent and original allocator callback state alive.

Contract

Retains a created handle and its library when automatic rollback is impossible. The native object still needs explicit cleanup; dropping this error performs no destruction. Keep its parent and original allocator callback state alive.

Methods and associated items

handle

Method
pub fn handle(&self) -> CreatedHandle

Native object retained by this failure. Do not create duplicate owners.

missing_command

Method
pub fn missing_command(&self) -> &'static str

Required command whose absence prevented wrapper initialization.

destroy

Method
pub unsafe fn destroy( self, allocator: Option<&AllocationCallbacks>, ) -> Result<(), Self>

Retry explicit cleanup; on failure return the same owner for further recovery. No submission or wait is performed.

Safety

The native object and its parents must still be live, with no children or outstanding operations. Callbacks must match creation and remain valid. Do not separately destroy the exposed handle before calling this method.

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

fmt-1

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

eq

Method
fn eq(&self, other: &Self) -> bool
Tests for self and other values to be equal, and is used by ==.