pub enum VotePlanLedgerError {
VotePlanInsertionError {
id: VotePlanId,
reason: InsertError,
},
VoteError {
id: VotePlanId,
reason: UpdateError<VoteError>,
},
VotePlanVoteEndPassed {
current_date: BlockDate,
vote_end: BlockDate,
},
VotePlanVoteStartStartedAlready {
current_date: BlockDate,
vote_start: BlockDate,
},
VotePlanMissingCommitteeMemberKey,
}
Variants§
VotePlanInsertionError
VoteError
VotePlanVoteEndPassed
VotePlanVoteStartStartedAlready
VotePlanMissingCommitteeMemberKey
Trait Implementations§
source§impl Clone for VotePlanLedgerError
impl Clone for VotePlanLedgerError
source§fn clone(&self) -> VotePlanLedgerError
fn clone(&self) -> VotePlanLedgerError
Returns a copy of the value. Read more
1.0.0 · 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 VotePlanLedgerError
impl Debug for VotePlanLedgerError
source§impl Display for VotePlanLedgerError
impl Display for VotePlanLedgerError
source§impl Error for VotePlanLedgerError
impl Error for VotePlanLedgerError
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<VotePlanLedgerError> for Error
impl From<VotePlanLedgerError> for Error
source§fn from(source: VotePlanLedgerError) -> Self
fn from(source: VotePlanLedgerError) -> Self
Converts to this type from the input type.
source§impl PartialEq<VotePlanLedgerError> for VotePlanLedgerError
impl PartialEq<VotePlanLedgerError> for VotePlanLedgerError
source§fn eq(&self, other: &VotePlanLedgerError) -> bool
fn eq(&self, other: &VotePlanLedgerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VotePlanLedgerError
impl StructuralEq for VotePlanLedgerError
impl StructuralPartialEq for VotePlanLedgerError
Auto Trait Implementations§
impl RefUnwindSafe for VotePlanLedgerError
impl Send for VotePlanLedgerError
impl Sync for VotePlanLedgerError
impl Unpin for VotePlanLedgerError
impl UnwindSafe for VotePlanLedgerError
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