pub enum NnsNeuronDistributionError {
InvalidCollectionState {
reason: String,
},
CollectionNotComplete {
status: NnsNeuronCollectionStatus,
},
NeuronCountMismatch {
expected: u64,
actual: u64,
},
InvalidNeuronRows {
reason: String,
},
AccountingOverflow {
field: &'static str,
},
InvalidReport(NnsNeuronDistributionValidationError),
}Expand description
NnsNeuronDistributionError
Deterministic validation or accounting failure from local neuron distribution projection.
Variants§
InvalidCollectionState
The supplied collection state failed its shared continuation invariants.
CollectionNotComplete
The collection stopped without observing Governance API exhaustion.
Fields
§
status: NnsNeuronCollectionStatusCurrent lifecycle of the otherwise valid collection state.
NeuronCountMismatch
The supplied rows do not match the collection’s admitted-row accounting.
Fields
InvalidNeuronRows
Supplied rows failed the shared public-neuron response contract.
AccountingOverflow
A count conversion, increment, or numeric sum exceeded u64.
InvalidReport(NnsNeuronDistributionValidationError)
The projected report failed its shared publication invariants.
Trait Implementations§
Source§impl Debug for NnsNeuronDistributionError
impl Debug for NnsNeuronDistributionError
Source§impl Display for NnsNeuronDistributionError
impl Display for NnsNeuronDistributionError
Source§impl Error for NnsNeuronDistributionError
impl Error for NnsNeuronDistributionError
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<NnsNeuronDistributionValidationError> for NnsNeuronDistributionError
impl From<NnsNeuronDistributionValidationError> for NnsNeuronDistributionError
Source§fn from(source: NnsNeuronDistributionValidationError) -> Self
fn from(source: NnsNeuronDistributionValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NnsNeuronDistributionError
impl RefUnwindSafe for NnsNeuronDistributionError
impl Send for NnsNeuronDistributionError
impl Sync for NnsNeuronDistributionError
impl Unpin for NnsNeuronDistributionError
impl UnsafeUnpin for NnsNeuronDistributionError
impl UnwindSafe for NnsNeuronDistributionError
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