pub enum Error {
Show 53 variants
RCL_RET_OK,
RCL_RET_ERROR,
RCL_RET_TIMEOUT,
RCL_RET_BAD_ALLOC,
RCL_RET_INVALID_ARGUMENT,
RCL_RET_UNSUPPORTED,
RCL_RET_ALREADY_INIT,
RCL_RET_NOT_INIT,
RCL_RET_MISMATCHED_RMW_ID,
RCL_RET_TOPIC_NAME_INVALID,
RCL_RET_SERVICE_NAME_INVALID,
RCL_RET_UNKNOWN_SUBSTITUTION,
RCL_RET_ALREADY_SHUTDOWN,
RCL_RET_NODE_INVALID,
RCL_RET_NODE_INVALID_NAME,
RCL_RET_NODE_INVALID_NAMESPACE,
RCL_RET_PUBLISHER_INVALID,
RCL_RET_SUBSCRIPTION_INVALID,
RCL_RET_SUBSCRIPTION_TAKE_FAILED,
RCL_RET_CLIENT_INVALID,
RCL_RET_CLIENT_TAKE_FAILED,
RCL_RET_SERVICE_INVALID,
RCL_RET_SERVICE_TAKE_FAILED,
RCL_RET_TIMER_INVALID,
RCL_RET_TIMER_CANCELED,
RCL_RET_WAIT_SET_INVALID,
RCL_RET_WAIT_SET_EMPTY,
RCL_RET_WAIT_SET_FULL,
RCL_RET_INVALID_REMAP_RULE,
RCL_RET_WRONG_LEXEME,
RCL_RET_INVALID_PARAM_RULE,
RCL_RET_INVALID_LOG_LEVEL_RULE,
RCL_RET_EVENT_INVALID,
RCL_RET_EVENT_TAKE_FAILED,
ClockTypeNotRosTime,
InvalidMessageType {
msgtype: String,
},
SerdeError {
err: String,
},
RCL_RET_ACTION_NAME_INVALID,
RCL_RET_ACTION_GOAL_ACCEPTED,
RCL_RET_ACTION_GOAL_REJECTED,
RCL_RET_ACTION_CLIENT_INVALID,
RCL_RET_ACTION_CLIENT_TAKE_FAILED,
RCL_RET_ACTION_SERVER_INVALID,
RCL_RET_ACTION_SERVER_TAKE_FAILED,
RCL_RET_ACTION_GOAL_HANDLE_INVALID,
RCL_RET_ACTION_GOAL_EVENT_INVALID,
GoalCancelRejected,
GoalCancelUnknownGoalID,
GoalCancelAlreadyTerminated,
InvalidParameterName {
name: String,
},
InvalidParameterType {
name: String,
ty: &'static str,
},
ParameterValueConv {
name: String,
msg: String,
},
ParameterWrongType {
name: String,
expected_type: &'static str,
actual_type: &'static str,
},
}
Expand description
r2r Error type.
These values are mostly copied straight from the RCL headers, but
some are specific to r2r, such as GoalCancelRejected
which does
not have an analogue in the rcl.
Variants§
RCL_RET_OK
RCL_RET_ERROR
RCL_RET_TIMEOUT
RCL_RET_BAD_ALLOC
RCL_RET_INVALID_ARGUMENT
RCL_RET_UNSUPPORTED
RCL_RET_ALREADY_INIT
RCL_RET_NOT_INIT
RCL_RET_MISMATCHED_RMW_ID
RCL_RET_TOPIC_NAME_INVALID
RCL_RET_SERVICE_NAME_INVALID
RCL_RET_UNKNOWN_SUBSTITUTION
RCL_RET_ALREADY_SHUTDOWN
RCL_RET_NODE_INVALID
RCL_RET_NODE_INVALID_NAME
RCL_RET_NODE_INVALID_NAMESPACE
RCL_RET_PUBLISHER_INVALID
RCL_RET_SUBSCRIPTION_INVALID
RCL_RET_SUBSCRIPTION_TAKE_FAILED
RCL_RET_CLIENT_INVALID
RCL_RET_CLIENT_TAKE_FAILED
RCL_RET_SERVICE_INVALID
RCL_RET_SERVICE_TAKE_FAILED
RCL_RET_TIMER_INVALID
RCL_RET_TIMER_CANCELED
RCL_RET_WAIT_SET_INVALID
RCL_RET_WAIT_SET_EMPTY
RCL_RET_WAIT_SET_FULL
RCL_RET_INVALID_REMAP_RULE
RCL_RET_WRONG_LEXEME
RCL_RET_INVALID_PARAM_RULE
RCL_RET_INVALID_LOG_LEVEL_RULE
RCL_RET_EVENT_INVALID
RCL_RET_EVENT_TAKE_FAILED
ClockTypeNotRosTime
InvalidMessageType
SerdeError
RCL_RET_ACTION_NAME_INVALID
RCL_RET_ACTION_GOAL_ACCEPTED
RCL_RET_ACTION_GOAL_REJECTED
RCL_RET_ACTION_CLIENT_INVALID
RCL_RET_ACTION_CLIENT_TAKE_FAILED
RCL_RET_ACTION_SERVER_INVALID
RCL_RET_ACTION_SERVER_TAKE_FAILED
RCL_RET_ACTION_GOAL_HANDLE_INVALID
RCL_RET_ACTION_GOAL_EVENT_INVALID
GoalCancelRejected
GoalCancelUnknownGoalID
GoalCancelAlreadyTerminated
InvalidParameterName
InvalidParameterType
ParameterValueConv
ParameterWrongType
Implementations§
source§impl Error
impl Error
pub fn from_rcl_error(e: i32) -> Self
sourcepub fn update_param_name(self, param_name: &str) -> Error
pub fn update_param_name(self, param_name: &str) -> Error
Internal function used by code derived for the RosParams trait.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more