Enum chain_impl_mockchain::vote::manager::VoteError
source · pub enum VoteError {
Show 13 variants
InvalidChoice {
options: Options,
choice: Choice,
},
InvalidVotePlan {
expected: VotePlanId,
vote: VoteCast,
},
NotVoteTime {
start: BlockDate,
end: BlockDate,
vote: VoteCast,
},
AlreadyVoted,
InvalidVoteProposal {
num_proposals: usize,
vote: VoteCast,
},
InvalidPayloadType {
received: PayloadType,
expected: PayloadType,
},
NotCommitteeTime {
start: BlockDate,
end: BlockDate,
},
InvalidTallyCommittee,
CannotTallyVotes {
source: TallyError,
},
VoteVerificationError(BallotVerificationError),
PrivateVoteInvalidSize {
actual: usize,
expected: usize,
},
PrivateTallyError(String),
ZeroVotingPower,
}
Variants§
InvalidChoice
InvalidVotePlan
NotVoteTime
AlreadyVoted
InvalidVoteProposal
InvalidPayloadType
NotCommitteeTime
InvalidTallyCommittee
CannotTallyVotes
Fields
§
source: TallyError
VoteVerificationError(BallotVerificationError)
PrivateVoteInvalidSize
PrivateTallyError(String)
ZeroVotingPower
Trait Implementations§
source§impl Error for VoteError
impl Error for VoteError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BallotVerificationError> for VoteError
impl From<BallotVerificationError> for VoteError
source§fn from(source: BallotVerificationError) -> Self
fn from(source: BallotVerificationError) -> Self
Converts to this type from the input type.
source§impl From<TallyError> for VoteError
impl From<TallyError> for VoteError
source§fn from(source: TallyError) -> Self
fn from(source: TallyError) -> Self
Converts to this type from the input type.
source§impl PartialEq<VoteError> for VoteError
impl PartialEq<VoteError> for VoteError
impl Eq for VoteError
impl StructuralEq for VoteError
impl StructuralPartialEq for VoteError
Auto Trait Implementations§
impl RefUnwindSafe for VoteError
impl Send for VoteError
impl Sync for VoteError
impl Unpin for VoteError
impl UnwindSafe for VoteError
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