pub enum TopologyError {
DuplicateNode(Box<ObjectId>),
UnknownEndpoint(Box<ObjectId>),
UnknownNode(Box<ObjectId>),
InexactConnection,
SelfConnection(Box<ObjectId>),
InvalidWidth(String),
DuplicateConnection {
left: Box<ObjectId>,
right: Box<ObjectId>,
},
BlankEvidenceLocator,
InexactTopologyCoverage,
}Expand description
A fail-closed topology construction or query error.
Variants§
DuplicateNode(Box<ObjectId>)
The declared node universe contains the same source-qualified identity twice.
UnknownEndpoint(Box<ObjectId>)
A connection references an object outside the declared node universe.
UnknownNode(Box<ObjectId>)
A query references an object outside the declared node universe.
InexactConnection
A connection was asserted without exact adapter evidence.
SelfConnection(Box<ObjectId>)
A connection joins an object to itself.
InvalidWidth(String)
A clear width or query threshold was non-finite or negative.
DuplicateConnection
The same undirected connection was supplied more than once.
BlankEvidenceLocator
Exact evidence did not carry a usable provenance locator.
InexactTopologyCoverage
The adapter could not prove the declared topology universe complete.
Trait Implementations§
Source§impl Clone for TopologyError
impl Clone for TopologyError
Source§fn clone(&self) -> TopologyError
fn clone(&self) -> TopologyError
Returns a copy 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 TopologyError
impl Debug for TopologyError
Source§impl Display for TopologyError
impl Display for TopologyError
Source§impl Error for TopologyError
impl Error for TopologyError
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 TopologyError
impl PartialEq for TopologyError
impl Eq for TopologyError
impl StructuralPartialEq for TopologyError
Auto Trait Implementations§
impl Freeze for TopologyError
impl RefUnwindSafe for TopologyError
impl Send for TopologyError
impl Sync for TopologyError
impl Unpin for TopologyError
impl UnwindSafe for TopologyError
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