pub enum LinkSpaceError {
InvalidNode(NodeId),
InvalidLink(LinkId),
AgentNotFound(AgentId),
AgentAlreadyOnLink(AgentId, LinkId),
}Expand description
Errors returned by link space operations.
Variants§
InvalidNode(NodeId)
The node index is out of range.
InvalidLink(LinkId)
The link index is out of range.
AgentNotFound(AgentId)
Agent is not on any link.
AgentAlreadyOnLink(AgentId, LinkId)
Agent already exists on a link.
Trait Implementations§
Source§impl Clone for LinkSpaceError
impl Clone for LinkSpaceError
Source§fn clone(&self) -> LinkSpaceError
fn clone(&self) -> LinkSpaceError
Returns a duplicate 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 LinkSpaceError
impl Debug for LinkSpaceError
Source§impl Display for LinkSpaceError
impl Display for LinkSpaceError
Source§impl Error for LinkSpaceError
impl Error for LinkSpaceError
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 LinkSpaceError
impl PartialEq for LinkSpaceError
impl StructuralPartialEq for LinkSpaceError
Auto Trait Implementations§
impl Freeze for LinkSpaceError
impl RefUnwindSafe for LinkSpaceError
impl Send for LinkSpaceError
impl Sync for LinkSpaceError
impl Unpin for LinkSpaceError
impl UnsafeUnpin for LinkSpaceError
impl UnwindSafe for LinkSpaceError
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