pub enum InteractionError {
EmptyNodes,
InvalidObjId {
obj: ObjId,
n_objects: usize,
},
InvalidInteractionId {
id: InteractionId,
n_slots: usize,
},
OrderChangeCollision {
nodes: Box<[ObjId]>,
existing: InteractionId,
incoming: InteractionId,
},
ObjectCountWouldInvalidate {
n_objects: usize,
id: InteractionId,
obj: ObjId,
},
Attrs(AttrsError),
}Expand description
Errors returned by interaction backend operations.
Variants§
EmptyNodes
Interaction node list is empty.
InvalidObjId
Object index is outside topology bounds.
Fields
InvalidInteractionId
Interaction id does not exist or is inactive.
Fields
§
id: InteractionIdRequested interaction id.
OrderChangeCollision
Changing from ordered to unordered interactions would merge two entries.
Fields
§
existing: InteractionIdExisting interaction id already using the canonical node list.
§
incoming: InteractionIdNew interaction id that would collide with the existing one.
ObjectCountWouldInvalidate
Requested object-count shrink would invalidate an existing interaction.
Fields
§
id: InteractionIdFirst active interaction id that would become invalid.
Attrs(AttrsError)
Wrapped attribute/core error from PhysObj operations.
Tuple Fields
§
0: AttrsErrorLower-level attribute/core error details.
Trait Implementations§
Source§impl Clone for InteractionError
impl Clone for InteractionError
Source§fn clone(&self) -> InteractionError
fn clone(&self) -> InteractionError
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 InteractionError
impl Debug for InteractionError
Source§impl From<AttrsError> for InteractionError
impl From<AttrsError> for InteractionError
Source§fn from(value: AttrsError) -> Self
fn from(value: AttrsError) -> Self
Converts to this type from the input type.
Source§impl From<InteractionError> for PowerLawNetworkError
impl From<InteractionError> for PowerLawNetworkError
Source§fn from(value: InteractionError) -> Self
fn from(value: InteractionError) -> Self
Converts to this type from the input type.
Source§impl From<InteractionError> for SpringNetworkError
impl From<InteractionError> for SpringNetworkError
Source§fn from(value: InteractionError) -> Self
fn from(value: InteractionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InteractionError
impl PartialEq for InteractionError
impl StructuralPartialEq for InteractionError
Auto Trait Implementations§
impl Freeze for InteractionError
impl RefUnwindSafe for InteractionError
impl Send for InteractionError
impl Sync for InteractionError
impl Unpin for InteractionError
impl UnsafeUnpin for InteractionError
impl UnwindSafe for InteractionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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