#[non_exhaustive]pub enum Error {
Show 15 variants
InterpolationError(String),
CollisionError(String, String),
Timeout {
timeout: Duration,
allowable_total_diff: f64,
err: f64,
},
LengthMismatch {
model: usize,
input: usize,
},
NoJoint(String),
JointNamesMismatch {
partial: Vec<String>,
full: Vec<String>,
},
CopyJointError(Vec<String>, Vec<f64>, Vec<String>, Vec<f64>),
TimeoutWithDiff {
target: Vec<f64>,
current: Vec<f64>,
is_reached: Vec<bool>,
},
Uninitialized {
message: String,
},
Connection {
message: String,
},
Canceled {
message: String,
},
OutOfLimit {
name: String,
position: f64,
limit: RangeInclusive<f64>,
},
Lazy(Arc<Error>),
Urdf(UrdfError),
Other(Error),
}
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.
InterpolationError(String)
CollisionError(String, String)
Timeout
LengthMismatch
NoJoint(String)
JointNamesMismatch
CopyJointError(Vec<String>, Vec<f64>, Vec<String>, Vec<f64>)
TimeoutWithDiff
Uninitialized
Connection
Canceled
OutOfLimit
Lazy(Arc<Error>)
Urdf(UrdfError)
Other(Error)
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.