Enum vulkano::sync::semaphore::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§
source§impl Clone for SemaphoreError
impl Clone for SemaphoreError
source§fn clone(&self) -> SemaphoreError
fn clone(&self) -> SemaphoreError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SemaphoreError
impl Debug for SemaphoreError
source§impl Display for SemaphoreError
impl Display for SemaphoreError
source§impl Error for SemaphoreError
impl Error for SemaphoreError
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 From<OomError> for SemaphoreError
impl From<OomError> for SemaphoreError
source§impl From<SemaphoreError> for AcquireError
impl From<SemaphoreError> for AcquireError
source§fn from(err: SemaphoreError) -> Self
fn from(err: SemaphoreError) -> Self
source§impl From<VulkanError> for SemaphoreError
impl From<VulkanError> for SemaphoreError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
source§impl PartialEq<SemaphoreError> for SemaphoreError
impl PartialEq<SemaphoreError> for SemaphoreError
source§fn eq(&self, other: &SemaphoreError) -> bool
fn eq(&self, other: &SemaphoreError) -> bool
self
and other
values to be equal, and is used
by ==
.