Enum tello_edu::TelloError
source · pub enum TelloError {
Generic {
msg: String,
},
WiFiNotConnected,
IOError {
msg: String,
},
DecodeError {
msg: String,
},
ParseError {
msg: String,
},
NotOkResponse {
response: String,
},
OutOfRange,
NonSpecificError,
}Variants§
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.
Auto Trait Implementations§
impl RefUnwindSafe for TelloError
impl Send for TelloError
impl Sync for TelloError
impl Unpin for TelloError
impl UnwindSafe for TelloError
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