pub enum MegakernelBarrierPlanError {
InvalidWave {
wave_count: usize,
before: usize,
after: usize,
},
SelfDependency {
wave: usize,
},
Cycle {
unscheduled_waves: usize,
},
ByteCountOverflow {
field: &'static str,
},
StorageReserveFailed {
field: &'static str,
requested: usize,
message: String,
},
}Expand description
Barrier planning failure.
Variants§
InvalidWave
A dependency references a wave outside 0..wave_count.
Fields
SelfDependency
A wave was declared to depend on itself.
Cycle
The dependency graph contains a cycle and cannot be scheduled.
ByteCountOverflow
Dependency CSR arithmetic overflowed.
StorageReserveFailed
Planner scratch/result storage could not be reserved.
Trait Implementations§
Source§impl ArithmeticOverflow for MegakernelBarrierPlanError
impl ArithmeticOverflow for MegakernelBarrierPlanError
Source§fn arithmetic_overflow(field: &'static str) -> Self
fn arithmetic_overflow(field: &'static str) -> Self
Build the planner-specific overflow error for
field.Source§impl Clone for MegakernelBarrierPlanError
impl Clone for MegakernelBarrierPlanError
Source§fn clone(&self) -> MegakernelBarrierPlanError
fn clone(&self) -> MegakernelBarrierPlanError
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 MegakernelBarrierPlanError
impl Debug for MegakernelBarrierPlanError
Source§impl Display for MegakernelBarrierPlanError
impl Display for MegakernelBarrierPlanError
impl Eq for MegakernelBarrierPlanError
Source§impl Error for MegakernelBarrierPlanError
impl Error for MegakernelBarrierPlanError
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 From<MegakernelBarrierPlanError> for MegakernelFrontierMemoryPlanError
impl From<MegakernelBarrierPlanError> for MegakernelFrontierMemoryPlanError
Source§fn from(error: MegakernelBarrierPlanError) -> Self
fn from(error: MegakernelBarrierPlanError) -> Self
Converts to this type from the input type.
Source§impl From<MegakernelBarrierPlanError> for MegakernelFrontierExecutionPlanError
impl From<MegakernelBarrierPlanError> for MegakernelFrontierExecutionPlanError
Source§fn from(error: MegakernelBarrierPlanError) -> Self
fn from(error: MegakernelBarrierPlanError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for MegakernelBarrierPlanError
Auto Trait Implementations§
impl Freeze for MegakernelBarrierPlanError
impl RefUnwindSafe for MegakernelBarrierPlanError
impl Send for MegakernelBarrierPlanError
impl Sync for MegakernelBarrierPlanError
impl Unpin for MegakernelBarrierPlanError
impl UnsafeUnpin for MegakernelBarrierPlanError
impl UnwindSafe for MegakernelBarrierPlanError
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.