#[non_exhaustive]pub enum RowError {
Remote(RemoteError),
NoValue,
Other(String),
}Expand description
Why one property of a read has no value. Structured, so a front end can report the device’s error class and code as data, not only as text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Remote(RemoteError)
The device answered this property with an error, a reject or an abort.
NoValue
The device’s answer for this property held neither a value nor an error.
Other(String)
Any other failure of this property’s read, as text.
Implementations§
Source§impl RowError
impl RowError
Sourcepub fn class_code(&self) -> Option<(ErrorClass, ErrorCode)>
pub fn class_code(&self) -> Option<(ErrorClass, ErrorCode)>
The device’s error class and code, when it answered with an error.
Trait Implementations§
impl Eq for RowError
Source§impl Error for RowError
impl Error for RowError
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 From<Error> for RowError
impl From<Error> for RowError
Source§fn from(error: Error) -> Self
fn from(error: Error) -> Self
The device’s error, reject or abort as RowError::Remote, with a
structured Error PDU reduced to its class and code; anything else
as text.
impl StructuralPartialEq for RowError
Auto Trait Implementations§
impl Freeze for RowError
impl RefUnwindSafe for RowError
impl Send for RowError
impl Sync for RowError
impl Unpin for RowError
impl UnsafeUnpin for RowError
impl UnwindSafe for RowError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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