pub enum DeviceWorkQueueError {
ZeroCapacity,
ZeroEntryBytes,
ZeroDrainChunk,
InitialItemsExceedCapacity {
initial_items: u64,
queue_capacity: u64,
},
HostParticipationRejected,
ByteCountOverflow {
field: &'static str,
},
OverBudget {
required_bytes: u64,
budget_bytes: u64,
},
}Expand description
Device work queue planning errors.
Variants§
ZeroCapacity
Queue capacity must be non-zero.
ZeroEntryBytes
Entry ABI width must be explicit and non-zero.
ZeroDrainChunk
Device-side drain chunk size must be non-zero.
InitialItemsExceedCapacity
Initial queue contents exceed capacity.
HostParticipationRejected
Host participation would reintroduce CPU orchestration.
ByteCountOverflow
Byte arithmetic overflowed.
OverBudget
Queue does not fit the explicit device budget.
Trait Implementations§
Source§impl Clone for DeviceWorkQueueError
impl Clone for DeviceWorkQueueError
Source§fn clone(&self) -> DeviceWorkQueueError
fn clone(&self) -> DeviceWorkQueueError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceWorkQueueError
impl Debug for DeviceWorkQueueError
Source§impl Display for DeviceWorkQueueError
impl Display for DeviceWorkQueueError
impl Eq for DeviceWorkQueueError
Source§impl Error for DeviceWorkQueueError
impl Error for DeviceWorkQueueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DeviceWorkQueueError
impl PartialEq for DeviceWorkQueueError
Source§fn eq(&self, other: &DeviceWorkQueueError) -> bool
fn eq(&self, other: &DeviceWorkQueueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceWorkQueueError
Auto Trait Implementations§
impl Freeze for DeviceWorkQueueError
impl RefUnwindSafe for DeviceWorkQueueError
impl Send for DeviceWorkQueueError
impl Sync for DeviceWorkQueueError
impl Unpin for DeviceWorkQueueError
impl UnsafeUnpin for DeviceWorkQueueError
impl UnwindSafe for DeviceWorkQueueError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.