pub enum Error {
SerialPort(Error),
Ppk2NotFound,
Io(Error),
Utf8(Utf8Error),
Parse(String),
SendMeasurement(SendError<MeasurementMatch>),
SendStopSignal(SendError<()>),
WorkerSignalError(TryRecvError),
DeserializeMeasurement(Vec<u8>),
}
Expand description
PPK2 communication or data parsing error.
Variants§
SerialPort(Error)
Ppk2NotFound
Io(Error)
Utf8(Utf8Error)
Parse(String)
SendMeasurement(SendError<MeasurementMatch>)
SendStopSignal(SendError<()>)
WorkerSignalError(TryRecvError)
DeserializeMeasurement(Vec<u8>)
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<SendError<MeasurementMatch>> for Error
impl From<SendError<MeasurementMatch>> for Error
source§fn from(source: SendError<MeasurementMatch>) -> Self
fn from(source: SendError<MeasurementMatch>) -> Self
Converts to this type from the input type.
source§impl From<TryRecvError> for Error
impl From<TryRecvError> for Error
source§fn from(source: TryRecvError) -> Self
fn from(source: TryRecvError) -> Self
Converts to this type from the input type.