pub enum ConsensusError {
EmptyTopology,
MetadataOverflow(&'static str),
Transport(String),
MalformedGather {
expected: usize,
actual: usize,
participants: usize,
},
Mismatch {
context: &'static str,
rank: usize,
},
CompletionHeader {
rank: usize,
},
CompletionIdentity {
rank: usize,
},
CompletionStatus {
rank: usize,
},
}Expand description
Structured consensus validation failure without backend error types.
Variants§
EmptyTopology
A consensus topology cannot be empty.
MetadataOverflow(&'static str)
Portable metadata exceeded its wire representation.
Transport(String)
The backend collective failed.
MalformedGather
The transport returned a malformed rank-major gather.
Fields
Mismatch
A schedule or disposition frame differed.
CompletionHeader
Completion protocol, work count, or frame size differed.
CompletionIdentity
Completion work ordering differed.
CompletionStatus
A rank emitted an unknown completion status.
Trait Implementations§
Source§impl Clone for ConsensusError
impl Clone for ConsensusError
Source§fn clone(&self) -> ConsensusError
fn clone(&self) -> ConsensusError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsensusError
impl Debug for ConsensusError
Source§impl Display for ConsensusError
impl Display for ConsensusError
impl Eq for ConsensusError
Source§impl Error for ConsensusError
impl Error for ConsensusError
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 PartialEq for ConsensusError
impl PartialEq for ConsensusError
impl StructuralPartialEq for ConsensusError
Auto Trait Implementations§
impl Freeze for ConsensusError
impl RefUnwindSafe for ConsensusError
impl Send for ConsensusError
impl Sync for ConsensusError
impl Unpin for ConsensusError
impl UnsafeUnpin for ConsensusError
impl UnwindSafe for ConsensusError
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