pub enum CommunityError {
InvalidResolution(f64),
InvalidMaxIterations(u32),
InvalidMinimumConfidence(f32),
InvalidEdgeConfidence {
edge_id: String,
confidence: f32,
},
InvalidEdgeWeight {
kind: EdgeKind,
weight: f64,
},
DuplicateEdgeWeight(EdgeKind),
DuplicateNodeId(String),
UnknownService(String),
}Expand description
Failure returned when community-analysis inputs violate their documented invariants.
Variants§
InvalidResolution(f64)
The Louvain resolution is not finite and strictly positive.
InvalidMaxIterations(u32)
The iteration limit is outside the supported inclusive range.
InvalidMinimumConfidence(f32)
The configured confidence threshold is not finite or outside zero through one.
InvalidEdgeConfidence
An input edge has a non-finite or out-of-range confidence.
Fields
InvalidEdgeWeight
A configured relationship weight is negative or non-finite.
Fields
DuplicateEdgeWeight(EdgeKind)
More than one explicit weight was supplied for the same relationship kind.
DuplicateNodeId(String)
More than one node uses the same stable identifier.
UnknownService(String)
Service scope did not resolve to an exact service stable key.
Trait Implementations§
Source§impl Debug for CommunityError
impl Debug for CommunityError
Source§impl Display for CommunityError
impl Display for CommunityError
Source§impl Error for CommunityError
impl Error for CommunityError
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 CommunityError
impl PartialEq for CommunityError
impl StructuralPartialEq for CommunityError
Auto Trait Implementations§
impl Freeze for CommunityError
impl RefUnwindSafe for CommunityError
impl Send for CommunityError
impl Sync for CommunityError
impl Unpin for CommunityError
impl UnsafeUnpin for CommunityError
impl UnwindSafe for CommunityError
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