Enum vulkano::sync::SemaphoreError
source · pub enum SemaphoreError {
Show 15 variants
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
AlreadyExported,
ExportFromImportedNotSupported {
imported_handle_type: ExternalSemaphoreHandleType,
},
ExportHandleTypesNotCompatible,
HandleTypeCopyNotSignaled,
HandletypeCopyNotTemporary,
HandleTypeNotEnabled,
HandleTypeNotExportable {
handle_type: ExternalSemaphoreHandleType,
},
HandleTypeNotFd,
HandleTypeNotWin32,
HandleTypeNotZircon,
ImportedForSwapchainAcquire,
InQueue,
QueueIsWaiting,
}
Expand description
Error that can be returned from operations on a semaphore.
Variants
OomError(OomError)
Not enough memory available.
RequirementNotMet
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: ExternalSemaphoreHandleType
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 semaphore 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
semaphore.
HandleTypeNotExportable
Fields
handle_type: ExternalSemaphoreHandleType
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.
HandleTypeNotZircon
The provided handle type is not a Zircon event handle.
ImportedForSwapchainAcquire
The semaphore currently has a temporary import for a swapchain acquire operation.
InQueue
The semaphore is currently in use by a queue.
QueueIsWaiting
A queue is currently waiting on the semaphore.
Trait Implementations
sourceimpl Clone for SemaphoreError
impl Clone for SemaphoreError
sourcefn clone(&self) -> SemaphoreError
fn clone(&self) -> SemaphoreError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more