pub enum Error<T> {
Transport(T),
DeviceNotFound,
PointNotFound,
MeasurandNotSupported,
AmbiguousMeasurand,
UnsupportedMapping(&'static str),
Decode(DecodeError),
Encode(EncodeError),
WriteAccess,
WriteConstraint(ConstraintKind),
}Expand description
Facade error, generic over the transport’s error type.
Variants§
Transport(T)
DeviceNotFound
PointNotFound
MeasurandNotSupported
AmbiguousMeasurand
More than one point matches the measurand query (spec §26.4).
UnsupportedMapping(&'static str)
Composed points via facade, unknown discovery kind, SunS not found…
Decode(DecodeError)
Encode(EncodeError)
WriteAccess
WriteConstraint(ConstraintKind)
Trait Implementations§
Source§impl<T: Display + Debug> Error for Error<T>
Available on crate feature std only.
impl<T: Display + Debug> Error for Error<T>
Available on crate feature
std only.1.30.0 · 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<T> From<DecodeError> for Error<T>
impl<T> From<DecodeError> for Error<T>
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl<T> From<EncodeError> for Error<T>
impl<T> From<EncodeError> for Error<T>
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnsafeUnpin for Error<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
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