pub enum SliceOutcome {
Signaled,
TimedOut,
Failed(Error),
}Expand description
Result of one slice-bounded native wait. Returned by the
SliceFn closure each per-backend wait_async override
supplies.
Variants§
Signaled
The primitive reached its target value within the slice.
Waiter thread resolves the future with Ok(()).
TimedOut
The slice’s native timeout elapsed without signalling. Waiter
thread re-issues a fresh slice (or transitions to
Err(Timeout) if the per-request deadline has now passed).
Failed(Error)
Driver-level failure (VK_ERROR_DEVICE_LOST,
DXGI_ERROR_DEVICE_REMOVED, CL_INVALID_EVENT, …). Waiter
thread resolves the future with this error directly.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SliceOutcome
impl !UnwindSafe for SliceOutcome
impl Freeze for SliceOutcome
impl Send for SliceOutcome
impl Sync for SliceOutcome
impl Unpin for SliceOutcome
impl UnsafeUnpin for SliceOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more