pub enum TracerError {
NodeNotFound(String),
CycleDetected {
path: Vec<String>,
},
QueryTooExpensive(usize),
InvalidStrength(f64),
MaxDepthExceeded,
}Expand description
Errors produced by CausalChainTracer.
Variants§
NodeNotFound(String)
A node ID was referenced but does not exist in the graph.
CycleDetected
Adding an edge would create a cycle.
QueryTooExpensive(usize)
The query would require exploring more nodes than allowed.
InvalidStrength(f64)
An edge strength value was outside [0.0, 1.0].
MaxDepthExceeded
A traversal exceeded the configured maximum depth.
Trait Implementations§
Source§impl Clone for TracerError
impl Clone for TracerError
Source§fn clone(&self) -> TracerError
fn clone(&self) -> TracerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TracerError
impl Debug for TracerError
Source§impl Display for TracerError
impl Display for TracerError
Source§impl Error for TracerError
impl Error for TracerError
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 TracerError
impl PartialEq for TracerError
Source§fn eq(&self, other: &TracerError) -> bool
fn eq(&self, other: &TracerError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TracerError
Auto Trait Implementations§
impl Freeze for TracerError
impl RefUnwindSafe for TracerError
impl Send for TracerError
impl Sync for TracerError
impl Unpin for TracerError
impl UnsafeUnpin for TracerError
impl UnwindSafe for TracerError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more