pub enum SupMCUError {
Show 14 variants
IoError(Error),
I2CDevError {
device: String,
address: u16,
error: LinuxI2CError,
},
I2CCommandError(u16, String),
I2CTelemetryError(u16, String),
ParsingError(ParsingError),
TelemetryIndexError(TelemetryType, usize),
NonReadyError(u16, String),
ValidationError,
MissingDefinitionError,
AsyncError(JoinError),
JSONError(Error),
ModuleNotFound(String, u16),
UnexpectedValue(String, SupMCUValue),
UnknownTelemName(String),
}Variants§
IoError(Error)
I2CDevError
I2CCommandError(u16, String)
I2CTelemetryError(u16, String)
ParsingError(ParsingError)
TelemetryIndexError(TelemetryType, usize)
NonReadyError(u16, String)
ValidationError
MissingDefinitionError
AsyncError(JoinError)
JSONError(Error)
ModuleNotFound(String, u16)
UnexpectedValue(String, SupMCUValue)
UnknownTelemName(String)
Trait Implementations§
Source§impl Debug for SupMCUError
impl Debug for SupMCUError
Source§impl Display for SupMCUError
impl Display for SupMCUError
Source§impl Error for SupMCUError
impl Error for SupMCUError
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()
Source§impl From<Error> for SupMCUError
impl From<Error> for SupMCUError
Source§impl From<Error> for SupMCUError
impl From<Error> for SupMCUError
Source§impl From<FromUtf8Error> for SupMCUError
impl From<FromUtf8Error> for SupMCUError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for SupMCUError
impl From<JoinError> for SupMCUError
Source§impl From<ParsingError> for SupMCUError
impl From<ParsingError> for SupMCUError
Source§fn from(source: ParsingError) -> Self
fn from(source: ParsingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SupMCUError
impl !RefUnwindSafe for SupMCUError
impl Send for SupMCUError
impl Sync for SupMCUError
impl Unpin for SupMCUError
impl !UnwindSafe for SupMCUError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more