#[repr(u8)]pub enum DevState {
Show 14 variants
On = 0,
Off = 1,
Close = 2,
Open = 3,
Insert = 4,
Extract = 5,
Moving = 6,
Standby = 7,
Fault = 8,
Init = 9,
Running = 10,
Alarm = 11,
Disable = 12,
Unknown = 13,
}Expand description
All possible device states.
Variants§
On = 0
Off = 1
Close = 2
Open = 3
Insert = 4
Extract = 5
Moving = 6
Standby = 7
Fault = 8
Init = 9
Running = 10
Alarm = 11
Disable = 12
Unknown = 13
Trait Implementations§
impl Copy for DevState
Source§impl Element for DevState
impl Element for DevState
Source§const INLINE_FIXED: bool
const INLINE_FIXED: bool
Whether a scalar of this type is held in place of a storage, which only a packed
type small enough can be.
Source§type Ref<'a> = DevState
type Ref<'a> = DevState
How one value is given out: by value for a packed type, borrowed for a string.
Source§type Spans = PackedSpans<DevState>
type Spans = PackedSpans<DevState>
Where the values are in the storage.
impl Eq for DevState
Source§impl PackedElement for DevState
impl PackedElement for DevState
Source§fn validate_all(_bytes: &[u8]) -> bool
fn validate_all(_bytes: &[u8]) -> bool
Whether the octets of a whole number of consecutive values are all valid values,
in a single pass: what octets are checked with when they are cast, and what
Element::validate is for one value.impl StructuralPartialEq for DevState
Source§impl TangoElement for DevState
impl TangoElement for DevState
Source§const ATTR_KIND: AttrDataKind = AttrDataKind::State
const ATTR_KIND: AttrDataKind = AttrDataKind::State
The kind of an attribute of such values.
Source§const CMD_SCALAR_KIND: Option<CommandDataKind>
const CMD_SCALAR_KIND: Option<CommandDataKind>
The kind of a command argument of one such value, absent if none can be.
Source§const CMD_ARRAY_KIND: Option<CommandDataKind>
const CMD_ARRAY_KIND: Option<CommandDataKind>
The kind of a command argument of an array of such values, absent if none can be.
fn wrap(format: ValueFormat<Self>) -> Value
fn unwrap(data: Value) -> Result<ValueFormat<Self>, Value>
fn unwrap_ref(data: &Value) -> Option<&ValueFormat<Self>>
Auto Trait Implementations§
impl Forget for DevState
impl Freeze for DevState
impl RefUnwindSafe for DevState
impl Send for DevState
impl Sync for DevState
impl Unpin for DevState
impl UnsafeUnpin for DevState
impl UnwindSafe for DevState
Blanket Implementations§
Source§impl<T> AttrData for Twhere
T: TangoElement + PackedElement,
impl<T> AttrData for Twhere
T: TangoElement + PackedElement,
const DATA_KIND: AttrDataKind = const DATA_KIND: AttrDataKind = <Buf<T, 0> as AttrData>::DATA_KIND;
const DATA_FORMAT: AttrDataFormat = const DATA_FORMAT: AttrDataFormat = <Buf<T, 0> as AttrData>::DATA_FORMAT;
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