pub enum ProtocolError {
Show 21 variants
TruncatedHeader(usize),
BadMagic([u8; 4]),
UnsupportedVersion(u16),
UnsupportedHeaderLength(usize),
UnknownOpcode(u8),
UnknownElementType(u8),
UnknownFlags(u16),
UnexpectedCountsPrefix(Opcode),
UnexpectedP2pChannelFlag(Opcode),
EmptyWorld,
RankOutOfRange {
name: &'static str,
rank: u32,
world_size: u32,
},
PayloadTooLarge(usize),
PayloadFlagMismatch,
ElementLengthMismatch,
PayloadLengthMismatch {
declared: usize,
actual: usize,
},
FrameLengthMismatch {
declared: usize,
actual: usize,
},
ChecksumMismatch {
declared: u32,
actual: u32,
},
SequenceMismatch {
expected: u64,
actual: u64,
},
DuplicateSubmission {
rank: usize,
sequence: u64,
},
CollectiveMismatch {
sequence: u64,
expected: OperationDescriptor,
actual: OperationDescriptor,
},
SequenceOverflow,
}Variants§
TruncatedHeader(usize)
BadMagic([u8; 4])
UnsupportedVersion(u16)
UnsupportedHeaderLength(usize)
UnknownOpcode(u8)
UnknownElementType(u8)
UnknownFlags(u16)
UnexpectedCountsPrefix(Opcode)
UnexpectedP2pChannelFlag(Opcode)
EmptyWorld
RankOutOfRange
PayloadTooLarge(usize)
PayloadFlagMismatch
ElementLengthMismatch
PayloadLengthMismatch
FrameLengthMismatch
ChecksumMismatch
SequenceMismatch
DuplicateSubmission
CollectiveMismatch
SequenceOverflow
Trait Implementations§
Source§impl Clone for ProtocolError
impl Clone for ProtocolError
Source§fn clone(&self) -> ProtocolError
fn clone(&self) -> ProtocolError
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 ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
impl Eq for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
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<ProtocolError> for NetworkError
impl From<ProtocolError> for NetworkError
Source§fn from(error: ProtocolError) -> Self
fn from(error: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProtocolError
impl PartialEq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.