pub enum FenceError {
Show 15 variants OomError(OomError), DeviceLost, Timeout, RequirementNotMet { required_for: &'static str, requires_one_of: RequiresOneOf, }, AlreadyExported, ExportFromImportedNotSupported { imported_handle_type: ExternalFenceHandleType, }, ExportHandleTypesNotCompatible, HandleTypeCopyNotSignaled, HandletypeCopyNotTemporary, HandleTypeNotEnabled, HandleTypeNotExportable { handle_type: ExternalFenceHandleType, }, HandleTypeNotFd, HandleTypeNotWin32, ImportedForSwapchainAcquire, InQueue,
}

Variants

OomError(OomError)

Not enough memory available.

DeviceLost

The device has been lost.

Timeout

The specified timeout wasn’t long enough.

RequirementNotMet

Fields

required_for: &'static str
requires_one_of: RequiresOneOf

AlreadyExported

The provided handle type does not permit more than one export, and a handle of this type was already exported previously.

ExportFromImportedNotSupported

Fields

imported_handle_type: ExternalFenceHandleType

The provided handle type cannot be exported from the current import handle type.

ExportHandleTypesNotCompatible

One of the export handle types is not compatible with the other provided handles.

HandleTypeCopyNotSignaled

A handle type with copy transference was provided, but the fence is not signaled and there is no pending queue operation that will signal it.

HandletypeCopyNotTemporary

A handle type with copy transference was provided, but the temporary import flag was not set.

HandleTypeNotEnabled

The provided export handle type was not set in export_handle_types when creating the fence.

HandleTypeNotExportable

Fields

Exporting is not supported for the provided handle type.

HandleTypeNotFd

The provided handle type is not a POSIX file descriptor handle.

HandleTypeNotWin32

The provided handle type is not a Win32 handle.

ImportedForSwapchainAcquire

The fence currently has a temporary import for a swapchain acquire operation.

InQueue

The fence is currently in use by a queue.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.