pub enum ExchangeError {
InvalidRank {
rank: usize,
},
SerdeError(Error),
IoError(Error),
MessageTooLarge(usize),
Timeout,
}Expand description
An error that can occur during a TCP-based endpoint exchange.
Variants§
InvalidRank
A rank referenced during the exchange is not present in the NetworkConfig.
SerdeError(Error)
A message could not be serialized or deserialized.
IoError(Error)
An underlying TCP I/O operation failed.
MessageTooLarge(usize)
The serialized message exceeds u32::MAX bytes and cannot be framed
with the 4-byte length prefix used by the wire protocol. The field
contains the actual encoded size in bytes.
Timeout
The exchange did not complete within ExchangeConfig::exchange_timeout.
Trait Implementations§
Source§impl Debug for ExchangeError
impl Debug for ExchangeError
Source§impl Display for ExchangeError
impl Display for ExchangeError
Source§impl Error for ExchangeError
impl Error for ExchangeError
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<Error> for ExchangeError
impl From<Error> for ExchangeError
Auto Trait Implementations§
impl Freeze for ExchangeError
impl !RefUnwindSafe for ExchangeError
impl Send for ExchangeError
impl Sync for ExchangeError
impl Unpin for ExchangeError
impl UnsafeUnpin for ExchangeError
impl !UnwindSafe for ExchangeError
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