pub enum Error {
TemperatureEncodingError(f32),
Bluetooth(BluetoothError),
}
Expand description
An error communicating with a BBQ thermometer device.
Variants§
TemperatureEncodingError(f32)
The given temperature could not be encoded because it is too high or too low.
Bluetooth(BluetoothError)
There was an error communicating over Bluetooth.
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<BluetoothError> for Error
impl From<BluetoothError> for Error
source§fn from(source: BluetoothError) -> Self
fn from(source: BluetoothError) -> Self
Converts to this type from the input type.