pub struct ControlException {
pub message: String,
pub move_status: Option<MoveStatus>,
pub last_motion_errors: Errors,
pub log: Vec<Record>,
}Expand description
A motion ended abnormally (mirrors franka::ControlException).
With the serde feature the whole exception serialises, log included; nothing in it is
unserialisable.
Fields§
§message: StringFull libfranka-style message, including the error names and success-rate lines when the motion was aborted by a reflex.
move_status: Option<MoveStatus>Terminal Move status when the exception was produced by a Move response.
last_motion_errors: Errorsreflex_reason of the last received state.
log: Vec<Record>The last states and commands before the exception (newest last).
Implementations§
Trait Implementations§
Source§impl Clone for ControlException
impl Clone for ControlException
Source§fn clone(&self) -> ControlException
fn clone(&self) -> ControlException
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 ControlException
impl Debug for ControlException
Source§impl Display for ControlException
impl Display for ControlException
Source§impl Error for ControlException
impl Error for ControlException
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 From<ControlException> for FrankaError
impl From<ControlException> for FrankaError
Source§fn from(e: ControlException) -> Self
fn from(e: ControlException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControlException
impl RefUnwindSafe for ControlException
impl Send for ControlException
impl Sync for ControlException
impl Unpin for ControlException
impl UnsafeUnpin for ControlException
impl UnwindSafe for ControlException
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.