pub enum CollectiveError {
GroupNotFound(String),
DecisionNotFound(String),
OptionNotFound(String),
DecisionNotVoting,
NoVotesCast,
AlgorithmNotImplemented,
InsufficientParticipants,
GroupCapacityExceeded,
}
Expand description
Collective intelligence errors
Variantsยง
GroupNotFound(String)
DecisionNotFound(String)
OptionNotFound(String)
DecisionNotVoting
NoVotesCast
AlgorithmNotImplemented
InsufficientParticipants
GroupCapacityExceeded
Trait Implementationsยง
Sourceยงimpl Debug for CollectiveError
impl Debug for CollectiveError
Sourceยงimpl Display for CollectiveError
impl Display for CollectiveError
Sourceยงimpl Error for CollectiveError
impl Error for CollectiveError
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 From<CollectiveError> for GenesisError
impl From<CollectiveError> for GenesisError
Sourceยงfn from(source: CollectiveError) -> Self
fn from(source: CollectiveError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for CollectiveError
impl RefUnwindSafe for CollectiveError
impl Send for CollectiveError
impl Sync for CollectiveError
impl Unpin for CollectiveError
impl UnwindSafe for CollectiveError
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