pub enum BarrierError {
Poisoned,
SelfNotInGroup,
UnorderedPeers,
DuplicatePeers,
Timeout,
TransportError(TransportError),
}Expand description
An error that can occur during a barrier synchronization.
Barriers are poisoned after any error: once a Barrier returns an Err,
every subsequent call will immediately return Poisoned
without attempting any RDMA operations. This prevents use of a barrier whose
internal epoch state may be inconsistent with remote peers.
Variants§
Poisoned
The barrier was poisoned by a previous error and can no longer be used.
SelfNotInGroup
This node’s own rank is not present in the supplied peer list.
UnorderedPeers
The peer list is not sorted in strictly ascending order.
DuplicatePeers
The peer list contains the same rank more than once.
Timeout
Not all peers reached the barrier within the allotted time.
TransportError(TransportError)
An RDMA transport error occurred while exchanging barrier notifications.
Trait Implementations§
Source§impl Debug for BarrierError
impl Debug for BarrierError
Source§impl Display for BarrierError
impl Display for BarrierError
Source§impl Error for BarrierError
impl Error for BarrierError
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<TransportError> for BarrierError
impl From<TransportError> for BarrierError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BarrierError
impl !RefUnwindSafe for BarrierError
impl Send for BarrierError
impl Sync for BarrierError
impl Unpin for BarrierError
impl UnsafeUnpin for BarrierError
impl !UnwindSafe for BarrierError
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