#[non_exhaustive]pub enum GraphRoutesError {
TooMany {
maximum: usize,
actual: usize,
},
Duplicate {
route_id: RouteId,
},
}Expand description
Invalid route collection for one node.
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.
TooMany
The per-node route ceiling was exceeded.
Duplicate
One route identity was repeated by the same node.
Trait Implementations§
Source§impl Clone for GraphRoutesError
impl Clone for GraphRoutesError
Source§impl Debug for GraphRoutesError
impl Debug for GraphRoutesError
Source§impl Display for GraphRoutesError
impl Display for GraphRoutesError
impl Eq for GraphRoutesError
Source§impl Error for GraphRoutesError
impl Error for GraphRoutesError
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 PartialEq for GraphRoutesError
impl PartialEq for GraphRoutesError
impl StructuralPartialEq for GraphRoutesError
Auto Trait Implementations§
impl Forget for GraphRoutesError
impl Freeze for GraphRoutesError
impl Move for GraphRoutesError
impl RefUnwindSafe for GraphRoutesError
impl Send for GraphRoutesError
impl Sync for GraphRoutesError
impl Unpin for GraphRoutesError
impl UnsafeUnpin for GraphRoutesError
impl UnwindSafe for GraphRoutesError
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