pub enum ResidencyWindowError {
EmptyLayerWindow,
OversizedLayerWindow {
depth: usize,
layer_count: usize,
},
InvalidLayerIndex {
index: usize,
layer_count: usize,
},
DuplicateLayerWindowUnit {
id: OffloadUnitId,
},
InvalidGroupId,
ArithmeticOverflow {
context: &'static str,
},
}Expand description
Invalid ordered residency-window configuration or accounting.
Variants§
EmptyLayerWindow
A layer window had no units.
OversizedLayerWindow
A device window depth was zero or exceeded its unit count.
InvalidLayerIndex
A requested current unit was outside the sequence.
DuplicateLayerWindowUnit
An ordered layer window repeated a unit identifier.
Fields
§
id: OffloadUnitIdDuplicated identifier.
InvalidGroupId
A named execution group had an empty identifier.
ArithmeticOverflow
Checked group accounting overflowed.
Trait Implementations§
Source§impl Clone for ResidencyWindowError
impl Clone for ResidencyWindowError
Source§fn clone(&self) -> ResidencyWindowError
fn clone(&self) -> ResidencyWindowError
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 ResidencyWindowError
impl Debug for ResidencyWindowError
Source§impl Display for ResidencyWindowError
impl Display for ResidencyWindowError
impl Eq for ResidencyWindowError
Source§impl Error for ResidencyWindowError
impl Error for ResidencyWindowError
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 ResidencyWindowError
impl PartialEq for ResidencyWindowError
impl StructuralPartialEq for ResidencyWindowError
Auto Trait Implementations§
impl Freeze for ResidencyWindowError
impl RefUnwindSafe for ResidencyWindowError
impl Send for ResidencyWindowError
impl Sync for ResidencyWindowError
impl Unpin for ResidencyWindowError
impl UnsafeUnpin for ResidencyWindowError
impl UnwindSafe for ResidencyWindowError
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