Enum spaceapi_server::sensors::SensorError [−]
pub enum SensorError {
UnknownSensor(String),
Redis(RedisError),
R2d2(GetTimeout),
}A SensorError wraps problems that can occur when reading or updating sensor values.
This type is only used for internal purposes and should not be used by third party code.
Variants
UnknownSensor(String)Redis(RedisError)R2d2(GetTimeout)
Trait Implementations
impl Debug for SensorError[src]
impl Debug for SensorErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<String> for SensorError
impl From<String> for SensorErrorfn from(value: String) -> SensorError
fn from(value: String) -> SensorErrorPerforms the conversion.
impl From<RedisError> for SensorError
impl From<RedisError> for SensorErrorfn from(value: RedisError) -> SensorError
fn from(value: RedisError) -> SensorErrorPerforms the conversion.
impl From<GetTimeout> for SensorError
impl From<GetTimeout> for SensorErrorfn from(value: GetTimeout) -> SensorError
fn from(value: GetTimeout) -> SensorErrorPerforms the conversion.
impl Display for SensorError
impl Display for SensorErrorfn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Error for SensorError
impl Error for SensorErrorAuto Trait Implementations
impl Send for SensorError
impl Send for SensorErrorimpl Sync for SensorError
impl Sync for SensorError