pub enum FrankaError {
Network(String),
Protocol(String),
IncompatibleVersion {
server_version: u16,
library_version: u16,
},
Command(String),
Control(ControlException),
Realtime(String),
InvalidOperation(String),
InvalidArgument(String),
Model(String),
}Expand description
Every error the crate can return (mirrors libfranka’s exception types).
Variants§
Network(String)
Connection or socket failure (franka::NetworkException).
Protocol(String)
Malformed or unexpected protocol data (franka::ProtocolException).
IncompatibleVersion
The server speaks another FCI version (franka::IncompatibleVersionException).
Fields
Command(String)
A TCP command was rejected (franka::CommandException).
Control(ControlException)
A motion ended abnormally (franka::ControlException).
Realtime(String)
Realtime priority or kernel requirements not met (franka::RealtimeException).
InvalidOperation(String)
Operation not allowed in the current state (franka::InvalidOperationException).
InvalidArgument(String)
Invalid user input (std::invalid_argument in libfranka).
Model(String)
Model loading or evaluation failure (franka::ModelException).
Trait Implementations§
Source§impl Clone for FrankaError
impl Clone for FrankaError
Source§fn clone(&self) -> FrankaError
fn clone(&self) -> FrankaError
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 FrankaError
impl Debug for FrankaError
Source§impl Display for FrankaError
impl Display for FrankaError
Source§impl Error for FrankaError
impl Error for FrankaError
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 FrankaError
impl RefUnwindSafe for FrankaError
impl Send for FrankaError
impl Sync for FrankaError
impl Unpin for FrankaError
impl UnsafeUnpin for FrankaError
impl UnwindSafe for FrankaError
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.