Enum spaceapi::sensors::SensorTemplateError
source · pub enum SensorTemplateError {
BadInteger(ParseIntError),
BadFloat(ParseFloatError),
BadBool(ParseBoolError),
}
Expand description
Describes an error occurring when building a sensor from a SensorTemplate
.
Variants§
BadInteger(ParseIntError)
Failed when parsing an integer value from the provided value string
BadFloat(ParseFloatError)
Failed when parsing a floating point value from the provided value string
BadBool(ParseBoolError)
Failed when parsing a boolean value from the provided value string
Trait Implementations§
source§impl Debug for SensorTemplateError
impl Debug for SensorTemplateError
source§impl Display for SensorTemplateError
impl Display for SensorTemplateError
source§impl Error for SensorTemplateError
impl Error for SensorTemplateError
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<ParseBoolError> for SensorTemplateError
impl From<ParseBoolError> for SensorTemplateError
source§fn from(source: ParseBoolError) -> Self
fn from(source: ParseBoolError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for SensorTemplateError
impl From<ParseFloatError> for SensorTemplateError
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for SensorTemplateError
impl From<ParseIntError> for SensorTemplateError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SensorTemplateError
impl Send for SensorTemplateError
impl Sync for SensorTemplateError
impl Unpin for SensorTemplateError
impl UnwindSafe for SensorTemplateError
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