Enum vulkano::sync::SemaphoreError
source · [−]pub enum SemaphoreError {
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
HandleTypeNotSupported {
handle_type: ExternalSemaphoreHandleType,
},
}
Expand description
Error that can be returned from operations on a semaphore.
Variants
OomError(OomError)
Not enough memory available.
RequirementNotMet
HandleTypeNotSupported
Fields
handle_type: ExternalSemaphoreHandleType
The requested export handle type was not provided in export_handle_types
when creating the
semaphore.
Trait Implementations
sourceimpl Clone for SemaphoreError
impl Clone for SemaphoreError
sourcefn clone(&self) -> SemaphoreError
fn clone(&self) -> SemaphoreError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SemaphoreError
impl Debug for SemaphoreError
sourceimpl Display for SemaphoreError
impl Display for SemaphoreError
sourceimpl Error for SemaphoreError
impl Error for SemaphoreError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<OomError> for SemaphoreError
impl From<OomError> for SemaphoreError
sourceimpl From<SemaphoreError> for AcquireError
impl From<SemaphoreError> for AcquireError
sourcefn from(err: SemaphoreError) -> Self
fn from(err: SemaphoreError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for SemaphoreError
impl From<VulkanError> for SemaphoreError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SemaphoreError> for SemaphoreError
impl PartialEq<SemaphoreError> for SemaphoreError
sourcefn eq(&self, other: &SemaphoreError) -> bool
fn eq(&self, other: &SemaphoreError) -> bool
impl Copy for SemaphoreError
impl Eq for SemaphoreError
impl StructuralEq for SemaphoreError
impl StructuralPartialEq for SemaphoreError
Auto Trait Implementations
impl RefUnwindSafe for SemaphoreError
impl Send for SemaphoreError
impl Sync for SemaphoreError
impl Unpin for SemaphoreError
impl UnwindSafe for SemaphoreError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more