pub enum Routing {
Off = 0,
Unknown = 1,
Lower = 2,
Upper = 3,
}Expand description
Which part an effect is routed to.
The stored encoding is not the panel’s numbering: off agrees at 0, but the two
engaged positions are 2 and 3.
| stored | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| off | Unknown | lower | upper |
Total over two bits, so decoding cannot fail.
Variants§
Off = 0
Unknown = 1
Off, as older firmware spelled it. Confirmed on hardware. It presents as off
(no light, no effect), and a front-panel store preserves it byte-for-byte
while the current panel’s own off-writes are 0. That it was the pre-2.04
encoding: Inferred from specimens; not confirmed on hardware. Every carrier
is a factory program or predates the instrument’s 2.04 update.
Lower = 2
Upper = 3
Implementations§
Trait Implementations§
impl Copy for Routing
impl Eq for Routing
Source§impl Ord for Routing
impl Ord for Routing
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl Packed for Routing
impl Packed for Routing
Source§const MAX_BITS: u32 = 2
const MAX_BITS: u32 = 2
Bits the widest value of this type occupies. Used to check statically that it
fits its slot.
Source§const DECODE_BITS: u32 = 2
const DECODE_BITS: u32 = 2
Widest slot this type can decode without losing bits on re-encoding. Read more
Source§const CONTROL: ControlKind = crate::fields::ControlKind::Selector
const CONTROL: ControlKind = crate::fields::ControlKind::Selector
Which panel control this value is, for a caller building an interface over the
field registry. Read more
Source§type Error = !
type Error = !
Why a bit pattern is not a valid value.
Infallible when every pattern is.Source§impl PartialOrd for Routing
impl PartialOrd for Routing
impl StructuralPartialEq for Routing
Auto Trait Implementations§
impl Freeze for Routing
impl RefUnwindSafe for Routing
impl Send for Routing
impl Sync for Routing
impl Unpin for Routing
impl UnsafeUnpin for Routing
impl UnwindSafe for Routing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.