#[non_exhaustive]pub enum FollowError {
Plan(PlanError),
GaveUp,
UnsupportedVersion,
}Expand description
Why following failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Plan(PlanError)
Planning failed.
GaveUp
The replan budget (FollowConfig::max_replans) is used up.
UnsupportedVersion
The planner does not support this game version (26.1) or its feature is off.
Trait Implementations§
Source§impl Clone for FollowError
impl Clone for FollowError
impl Copy for FollowError
Source§impl Debug for FollowError
impl Debug for FollowError
Source§impl Display for FollowError
impl Display for FollowError
impl Eq for FollowError
Source§impl Error for FollowError
impl Error for FollowError
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 Hash for FollowError
impl Hash for FollowError
Source§impl PartialEq for FollowError
impl PartialEq for FollowError
impl StructuralPartialEq for FollowError
Auto Trait Implementations§
impl Forget for FollowError
impl Freeze for FollowError
impl Move for FollowError
impl RefUnwindSafe for FollowError
impl Send for FollowError
impl Sync for FollowError
impl Unpin for FollowError
impl UnsafeUnpin for FollowError
impl UnwindSafe for FollowError
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