#[non_exhaustive]pub enum ControlError {
UnknownDevice(DeviceUid),
UnknownBay(BayUid),
UnknownSource(String),
Unsupported(&'static str),
NotReported(&'static str),
Send(SendError),
}Expand description
Why a control method did nothing.
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.
UnknownDevice(DeviceUid)
No device with this identifier has been heard from.
UnknownBay(BayUid)
The device has reported no bay on this port.
UnknownSource(String)
No input bay on the device carries this user-assigned name.
Unsupported(&'static str)
The addressee does not do what was asked of it.
NotReported(&'static str)
The device has not reported something the request is assembled from.
Unlike ControlError::Unsupported, the same call may succeed once it
has: this says the value is missing, not that it cannot exist.
Send(SendError)
The frame could not be sent.
Trait Implementations§
Source§impl Debug for ControlError
impl Debug for ControlError
Source§impl Display for ControlError
impl Display for ControlError
Source§impl Error for ControlError
impl Error for ControlError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ControlError
impl !UnwindSafe for ControlError
impl Freeze for ControlError
impl Send for ControlError
impl Sync for ControlError
impl Unpin for ControlError
impl UnsafeUnpin for ControlError
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