pub enum ControlRefusal {
UnknownModel,
FirmwareNewerThanKnown,
DeveloperModeUnavailable,
UnknownControlBoundary,
}Expand description
Why control was refused — distinct reasons so a caller (CLI) can map them to exit codes and actionable messages.
Variants§
UnknownModel
We don’t recognise this model at all.
FirmwareNewerThanKnown
Firmware is newer than the registry knows; ACS behaviour may have changed, so we refuse rather than risk an uncatalogued change.
Developer Mode is required but not available on this firmware.
UnknownControlBoundary
We don’t have a confirmed control boundary for this model.
Trait Implementations§
Source§impl Clone for ControlRefusal
impl Clone for ControlRefusal
Source§fn clone(&self) -> ControlRefusal
fn clone(&self) -> ControlRefusal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ControlRefusal
Source§impl Debug for ControlRefusal
impl Debug for ControlRefusal
impl Eq for ControlRefusal
Source§impl PartialEq for ControlRefusal
impl PartialEq for ControlRefusal
Source§fn eq(&self, other: &ControlRefusal) -> bool
fn eq(&self, other: &ControlRefusal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlRefusal
Auto Trait Implementations§
impl Freeze for ControlRefusal
impl RefUnwindSafe for ControlRefusal
impl Send for ControlRefusal
impl Sync for ControlRefusal
impl Unpin for ControlRefusal
impl UnsafeUnpin for ControlRefusal
impl UnwindSafe for ControlRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.