Enum dji_onboard::Error
[−]
[src]
pub enum Error {
Encode,
Decode,
Session,
Json(Error),
Transport(String),
Protocol(ProtocolError),
Time(SystemTimeError),
EventLoop(String),
Http(String),
}Variants
EncodeDecodeSessionJson(Error)Transport(String)Protocol(ProtocolError)Time(SystemTimeError)EventLoop(String)Http(String)Methods
impl Error[src]
fn task<S: Into<String>>(msg: S) -> Error
fn io(err: Error) -> Error
fn http<S: Into<String>>(msg: S) -> Error
Trait Implementations
impl Debug for Error[src]
impl<'a> From<&'a str> for Error[src]
impl From<TimerError> for Error[src]
fn from(err: TimerError) -> Self
Performs the conversion.
impl From<SystemTimeError> for Error[src]
fn from(err: SystemTimeError) -> Self
Performs the conversion.
impl From<Error> for Error[src]
impl From<ProtocolError> for Error[src]
fn from(err: ProtocolError) -> Self
Performs the conversion.
impl From<Error> for Error[src]
impl StdError for Error[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more