pub enum MotorcortexError {
Connection(String),
Encode(String),
Decode(String),
ParameterNotFound(String),
Status(StatusCode),
Io(String),
Subscription(String),
}Expand description
Error type for all motorcortex-rust operations.
Variants§
Connection(String)
Connection failed (TLS, socket, timeout)
Encode(String)
Message encoding failed
Decode(String)
Message decoding failed
ParameterNotFound(String)
Parameter path not found in the tree
Status(StatusCode)
Server returned a non-OK status
Io(String)
NNG-level I/O failure (send/receive)
Subscription(String)
Subscription operation failed
Trait Implementations§
Source§impl Debug for MotorcortexError
impl Debug for MotorcortexError
Source§impl Display for MotorcortexError
impl Display for MotorcortexError
Source§impl Error for MotorcortexError
impl Error for MotorcortexError
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<DecodeError> for MotorcortexError
impl From<DecodeError> for MotorcortexError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MotorcortexError
impl RefUnwindSafe for MotorcortexError
impl Send for MotorcortexError
impl Sync for MotorcortexError
impl Unpin for MotorcortexError
impl UnsafeUnpin for MotorcortexError
impl UnwindSafe for MotorcortexError
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