pub struct RclErrorMsg(/* private fields */);
Expand description
Struct encapsulating an error message from the rcl layer or below.
This struct is intended to be returned by the source
method in the implementation of the
standard Error
trait for RclrsError
.
By doing this, the error message is printed as a separate item in the error chain.
This avoids an unreadable, inconsistent formatting of error codes and messages that would
likely be produced by a combined display of RclReturnCode
and message.
Trait Implementations§
Source§impl Debug for RclErrorMsg
impl Debug for RclErrorMsg
Source§impl Display for RclErrorMsg
impl Display for RclErrorMsg
Source§impl Error for RclErrorMsg
impl Error for RclErrorMsg
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 PartialEq for RclErrorMsg
impl PartialEq for RclErrorMsg
impl Eq for RclErrorMsg
impl StructuralPartialEq for RclErrorMsg
Auto Trait Implementations§
impl Freeze for RclErrorMsg
impl RefUnwindSafe for RclErrorMsg
impl Send for RclErrorMsg
impl Sync for RclErrorMsg
impl Unpin for RclErrorMsg
impl UnwindSafe for RclErrorMsg
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