pub enum StrongEdgeMutationError {
Allocation(EdgeAllocationError),
UnknownEdge(EdgeId),
WrongKind {
edge: EdgeId,
actual: EdgeKind,
},
TargetChanged {
expected: ManagedId,
actual: ManagedId,
},
}Expand description
A failed checked mutation of a strong edge.
Variants§
Allocation(EdgeAllocationError)
Allocating a stable identity for a new edge failed.
UnknownEdge(EdgeId)
The requested identity is not a live strong edge of this node.
WrongKind
The identity is live, but has different collection semantics.
Fields
TargetChanged
The edge exists, but no longer names the caller’s expected target.
Trait Implementations§
Source§impl Clone for StrongEdgeMutationError
impl Clone for StrongEdgeMutationError
Source§fn clone(&self) -> StrongEdgeMutationError
fn clone(&self) -> StrongEdgeMutationError
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 moreimpl Copy for StrongEdgeMutationError
Source§impl Debug for StrongEdgeMutationError
impl Debug for StrongEdgeMutationError
Source§impl Display for StrongEdgeMutationError
impl Display for StrongEdgeMutationError
impl Eq for StrongEdgeMutationError
Source§impl Error for StrongEdgeMutationError
impl Error for StrongEdgeMutationError
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 From<EdgeAllocationError> for StrongEdgeMutationError
impl From<EdgeAllocationError> for StrongEdgeMutationError
Source§fn from(error: EdgeAllocationError) -> Self
fn from(error: EdgeAllocationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StrongEdgeMutationError
impl PartialEq for StrongEdgeMutationError
impl StructuralPartialEq for StrongEdgeMutationError
Auto Trait Implementations§
impl Freeze for StrongEdgeMutationError
impl RefUnwindSafe for StrongEdgeMutationError
impl Send for StrongEdgeMutationError
impl Sync for StrongEdgeMutationError
impl Unpin for StrongEdgeMutationError
impl UnsafeUnpin for StrongEdgeMutationError
impl UnwindSafe for StrongEdgeMutationError
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