pub enum RoundError {
WrongRound {
signer: String,
actual: SigningRound,
expected: SigningRound,
},
DuplicateResponse(String),
AlreadyCompleted,
Aborted(String),
InsufficientResponses {
have: usize,
need: usize,
},
}Expand description
Errors during round coordination.
Variants§
WrongRound
Signer submitted in the wrong round.
DuplicateResponse(String)
Duplicate submission in the same round.
AlreadyCompleted
Protocol already completed.
Aborted(String)
Protocol was aborted.
InsufficientResponses
Not enough signers to advance.
Trait Implementations§
Source§impl Debug for RoundError
impl Debug for RoundError
Source§impl Display for RoundError
impl Display for RoundError
Source§impl Error for RoundError
impl Error for RoundError
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()
Auto Trait Implementations§
impl Freeze for RoundError
impl RefUnwindSafe for RoundError
impl Send for RoundError
impl Sync for RoundError
impl Unpin for RoundError
impl UnsafeUnpin for RoundError
impl UnwindSafe for RoundError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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