pub enum InstanceError {
OutOfRange {
agent: AgentId,
},
SharedStart(AgentId, AgentId),
SharedGoal(AgentId, AgentId),
}Expand description
Why Instance::new or TaskInstance::new rejected an instance.
Variants§
OutOfRange
The start or goal of agent is not a vertex of the graph.
Two agents, the earlier one first, start at the same vertex.
Two agents, the earlier one first, have the same goal.
Trait Implementations§
Source§impl Clone for InstanceError
impl Clone for InstanceError
impl Copy for InstanceError
Source§impl Debug for InstanceError
impl Debug for InstanceError
Source§impl Display for InstanceError
impl Display for InstanceError
impl Eq for InstanceError
Source§impl Error for InstanceError
impl Error for InstanceError
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 InstanceError
impl PartialEq for InstanceError
impl StructuralPartialEq for InstanceError
Auto Trait Implementations§
impl Forget for InstanceError
impl Freeze for InstanceError
impl Move for InstanceError
impl RefUnwindSafe for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl UnsafeUnpin for InstanceError
impl UnwindSafe for InstanceError
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