Enum tello_edu::TelloError
source · pub enum TelloError {
Generic {
msg: String,
},
WiFiNotConnected,
IOError {
msg: String,
},
DecodeResponseError {
msg: String,
},
ParseResponseError {
msg: String,
},
NotOkResponse {
response: String,
},
OutOfRange,
NonSpecificError,
}Variants§
Generic
WiFiNotConnected
IOError
DecodeResponseError
ParseResponseError
NotOkResponse
OutOfRange
NonSpecificError
Implementations§
source§impl TelloError
impl TelloError
pub fn from_not_ok_response(response: String) -> TelloError
Trait Implementations§
source§impl Debug for TelloError
impl Debug for TelloError
source§impl Display for TelloError
impl Display for TelloError
source§impl Error for TelloError
impl Error for TelloError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for TelloError
impl From<Error> for TelloError
source§fn from(err: Error) -> TelloError
fn from(err: Error) -> TelloError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for TelloError
impl From<FromUtf8Error> for TelloError
source§fn from(err: FromUtf8Error) -> TelloError
fn from(err: FromUtf8Error) -> TelloError
Converts to this type from the input type.
source§impl From<ParseIntError> for TelloError
impl From<ParseIntError> for TelloError
source§fn from(err: ParseIntError) -> TelloError
fn from(err: ParseIntError) -> TelloError
Converts to this type from the input type.