#[non_exhaustive]pub enum MixedWorkProtocolError {
EmptyPlan,
ZeroDrainWatchdogBudget,
ZeroUnitWatchdogBudget {
sequence: u64,
},
ZeroResidentArtifactId {
sequence: u64,
},
ZeroOutputSlabId {
sequence: u64,
},
QueueClassMismatch {
sequence: u64,
queue_class: &'static str,
unit_type: &'static str,
},
UnitCountOverflow {
unit_count: usize,
},
ClassCountOverflow {
queue_class: &'static str,
},
WatchdogBudgetOverflow,
WatchdogBudgetExceeded {
total_watchdog_budget_ticks: u64,
drain_watchdog_budget_ticks: u64,
},
}Expand description
Mixed-work protocol validation error.
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.
EmptyPlan
The plan has no resident work.
ZeroDrainWatchdogBudget
The total drain budget is zero.
ZeroUnitWatchdogBudget
A unit has no watchdog budget.
ZeroResidentArtifactId
A unit references no resident artifact.
ZeroOutputSlabId
A unit references no output slab.
QueueClassMismatch
Queue class and unit type do not match.
Fields
UnitCountOverflow
Unit count cannot fit the evidence ABI.
ClassCountOverflow
Class-specific count cannot fit the evidence ABI.
WatchdogBudgetOverflow
Watchdog sum overflowed the evidence ABI.
WatchdogBudgetExceeded
The plan cannot drain inside the supplied watchdog budget.
Trait Implementations§
Source§impl Clone for MixedWorkProtocolError
impl Clone for MixedWorkProtocolError
Source§fn clone(&self) -> MixedWorkProtocolError
fn clone(&self) -> MixedWorkProtocolError
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 MixedWorkProtocolError
impl Debug for MixedWorkProtocolError
Source§impl Display for MixedWorkProtocolError
impl Display for MixedWorkProtocolError
impl Eq for MixedWorkProtocolError
Source§impl Error for MixedWorkProtocolError
impl Error for MixedWorkProtocolError
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 MixedWorkProtocolError
impl PartialEq for MixedWorkProtocolError
Source§fn eq(&self, other: &MixedWorkProtocolError) -> bool
fn eq(&self, other: &MixedWorkProtocolError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MixedWorkProtocolError
Auto Trait Implementations§
impl Freeze for MixedWorkProtocolError
impl RefUnwindSafe for MixedWorkProtocolError
impl Send for MixedWorkProtocolError
impl Sync for MixedWorkProtocolError
impl Unpin for MixedWorkProtocolError
impl UnsafeUnpin for MixedWorkProtocolError
impl UnwindSafe for MixedWorkProtocolError
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.