#[non_exhaustive]pub enum DenseTransferScheduleError {
ZeroCapacity,
UnorderedPending {
previous: usize,
actual: usize,
},
CapacityExceeded {
capacity: usize,
},
NoPendingUnit,
OutOfOrder {
expected: usize,
actual: usize,
},
}Expand description
Invalid transition in a bounded dense transfer schedule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroCapacity
A transfer window cannot have zero capacity.
UnorderedPending
Pending units were not supplied in strictly increasing order.
CapacityExceeded
Admission was attempted while the ready window was full.
NoPendingUnit
Admission was attempted after all pending units were submitted.
OutOfOrder
A backend submitted transfers in a different order from the architecture sequence.
Trait Implementations§
Source§impl Clone for DenseTransferScheduleError
impl Clone for DenseTransferScheduleError
Source§fn clone(&self) -> DenseTransferScheduleError
fn clone(&self) -> DenseTransferScheduleError
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 DenseTransferScheduleError
impl Debug for DenseTransferScheduleError
Source§impl Display for DenseTransferScheduleError
impl Display for DenseTransferScheduleError
impl Eq for DenseTransferScheduleError
Source§impl Error for DenseTransferScheduleError
impl Error for DenseTransferScheduleError
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()
impl StructuralPartialEq for DenseTransferScheduleError
Auto Trait Implementations§
impl Freeze for DenseTransferScheduleError
impl RefUnwindSafe for DenseTransferScheduleError
impl Send for DenseTransferScheduleError
impl Sync for DenseTransferScheduleError
impl Unpin for DenseTransferScheduleError
impl UnsafeUnpin for DenseTransferScheduleError
impl UnwindSafe for DenseTransferScheduleError
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