Enum crazyflie_lib::Error
source · pub enum Error {
ProtocolVersionNotSupported,
ProtocolError(String),
ParamError(String),
LogError(String),
ConversionError(String),
LinkError(Error),
Disconnected,
VariableNotFound,
SystemError(String),
AppchannelPacketTooLarge,
}Expand description
Error enum type
Variants§
ProtocolVersionNotSupported
Protocol version not supported, you need to update either the lib or the Crazyflie.
see the crate documentation for more information.
ProtocolError(String)
Unexpected protocol error. The String contains the reason.
ParamError(String)
Parameter subsystem error. The String contains the reason.
LogError(String)
Log Subsystem error. The String contains the reason.
ConversionError(String)
Value conversion error. The String contains the reason.
LinkError(Error)
Crazyflie link configuration error. Returns the error from the Link.
Disconnected
The Crazyflie object is currently disconnected.
VariableNotFound
Variable not found in TOC.
SystemError(String)
Error with the async executors.
AppchannelPacketTooLarge
App channel packets should be no larger than APPCHANNEL_MTU
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<SpawnError> for Error
impl From<SpawnError> for Error
source§fn from(error: SpawnError) -> Self
fn from(error: SpawnError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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