pub enum VehicleError {
ConnectionFailed(String),
Disconnected,
Timeout,
Cancelled,
CommandRejected {
command: String,
result: String,
},
IdentityUnknown,
ModeNotAvailable(String),
MissionTransfer {
code: String,
message: String,
},
MissionValidation(String),
Io(Error),
}Expand description
Errors that can occur during vehicle communication and operations.
Variants§
ConnectionFailed(String)
Disconnected
Timeout
Cancelled
CommandRejected
IdentityUnknown
ModeNotAvailable(String)
MissionTransfer
MissionValidation(String)
Io(Error)
Trait Implementations§
Source§impl Debug for VehicleError
impl Debug for VehicleError
Source§impl Display for VehicleError
impl Display for VehicleError
Source§impl Error for VehicleError
impl Error for VehicleError
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 VehicleError
impl !RefUnwindSafe for VehicleError
impl Send for VehicleError
impl Sync for VehicleError
impl Unpin for VehicleError
impl UnsafeUnpin for VehicleError
impl !UnwindSafe for VehicleError
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