#[non_exhaustive]pub enum CommunicationManifestConsensusError {
EmptyTopology,
MetadataOverflow(&'static str),
Encoding(String),
Transport(String),
MalformedGather {
stage: &'static str,
expected: usize,
actual: usize,
participants: usize,
},
PayloadLengthOverflow {
rank: usize,
length: u64,
},
InvalidPayloadLength {
rank: usize,
length: usize,
available: usize,
},
InvalidEncoding {
rank: usize,
message: String,
},
Manifest(CommunicationManifestError),
}Expand description
Failure while exchanging or validating complete rank-local manifests.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyTopology
A consensus topology cannot be empty.
MetadataOverflow(&'static str)
Portable metadata exceeded its wire or host representation.
Encoding(String)
The local manifest could not be encoded.
Transport(String)
The control-plane collective failed.
MalformedGather
An equal-word gather returned a malformed rank-major frame.
Fields
PayloadLengthOverflow
A peer encoded a payload length that this host cannot represent.
InvalidPayloadLength
A peer advertised more bytes than fit in the gathered padded frame.
Fields
InvalidEncoding
A peer payload was not a valid checked opaque manifest.
Fields
Manifest(CommunicationManifestError)
The reconstructed rank manifests are not mutually compatible.
Trait Implementations§
Source§impl Clone for CommunicationManifestConsensusError
impl Clone for CommunicationManifestConsensusError
Source§fn clone(&self) -> CommunicationManifestConsensusError
fn clone(&self) -> CommunicationManifestConsensusError
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 moreimpl Eq for CommunicationManifestConsensusError
Source§impl Error for CommunicationManifestConsensusError
impl Error for CommunicationManifestConsensusError
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<CommunicationManifestError> for CommunicationManifestConsensusError
impl From<CommunicationManifestError> for CommunicationManifestConsensusError
Source§fn from(source: CommunicationManifestError) -> Self
fn from(source: CommunicationManifestError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for CommunicationManifestConsensusError
Auto Trait Implementations§
impl Freeze for CommunicationManifestConsensusError
impl RefUnwindSafe for CommunicationManifestConsensusError
impl Send for CommunicationManifestConsensusError
impl Sync for CommunicationManifestConsensusError
impl Unpin for CommunicationManifestConsensusError
impl UnsafeUnpin for CommunicationManifestConsensusError
impl UnwindSafe for CommunicationManifestConsensusError
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