#[non_exhaustive]pub enum ControlError {
UnknownDevice(DeviceUid),
UnknownBay(BayUid),
UnknownSource(String),
Unsupported(&'static str),
InvalidRequest(&'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
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.
InvalidRequest(&'static str)
The request breaks a rule the device is not guaranteed to check.
Nothing was sent. This is the caller’s to fix, and it is separate from
ControlError::Unsupported because the device would have taken the
frame: refusing here is this library declining to let a bad value
reach hardware that may store it rather than reject 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()