pub enum NetworkConfigError {
EmptyNetwork,
FirstRankNotZero,
NonSequentialRanks {
gap_rank: usize,
},
DuplicatedRank {
dup_rank: usize,
},
}Expand description
An error returned by RawNetworkConfig::build when the configuration is invalid.
Variants§
EmptyNetwork
No nodes were added to the configuration.
FirstRankNotZero
The lowest rank present is not 0. Ranks must be a contiguous sequence
starting at zero.
NonSequentialRanks
There is a gap in the rank sequence. gap_rank is the first missing rank.
DuplicatedRank
The same rank appears more than once. dup_rank is the repeated rank.
Trait Implementations§
Source§impl Clone for NetworkConfigError
impl Clone for NetworkConfigError
Source§fn clone(&self) -> NetworkConfigError
fn clone(&self) -> NetworkConfigError
Returns a duplicate of the value. Read more
1.0.0 · 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 NetworkConfigError
impl Debug for NetworkConfigError
Source§impl Display for NetworkConfigError
impl Display for NetworkConfigError
Source§impl Error for NetworkConfigError
impl Error for NetworkConfigError
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()
impl Copy for NetworkConfigError
Auto Trait Implementations§
impl Freeze for NetworkConfigError
impl RefUnwindSafe for NetworkConfigError
impl Send for NetworkConfigError
impl Sync for NetworkConfigError
impl Unpin for NetworkConfigError
impl UnsafeUnpin for NetworkConfigError
impl UnwindSafe for NetworkConfigError
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