pub enum ButtonLockState {
On,
Off,
Unspecified(String),
}Variants§
On
Off
Unspecified(String)
Allows passing a value that was not known at the time that this crate was generated from the available device descriptions
Trait Implementations§
Source§impl Clone for ButtonLockState
impl Clone for ButtonLockState
Source§fn clone(&self) -> ButtonLockState
fn clone(&self) -> ButtonLockState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonLockState
impl Debug for ButtonLockState
Source§impl Default for ButtonLockState
impl Default for ButtonLockState
Source§fn default() -> ButtonLockState
fn default() -> ButtonLockState
Returns the “default value” for a type. Read more
Source§impl FromStr for ButtonLockState
impl FromStr for ButtonLockState
Source§impl<'xml> FromXml<'xml> for ButtonLockState
impl<'xml> FromXml<'xml> for ButtonLockState
const KIND: Kind = instant_xml::Kind::Scalar
type Accumulator = Option<ButtonLockState>
fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
fn deserialize<'cx>( into: &mut Self::Accumulator, field: &'static str, deserializer: &mut Deserializer<'cx, 'xml>, ) -> Result<(), Error>
Source§impl PartialEq for ButtonLockState
impl PartialEq for ButtonLockState
Source§impl ToString for ButtonLockState
impl ToString for ButtonLockState
Source§impl ToXml for ButtonLockState
impl ToXml for ButtonLockState
impl Eq for ButtonLockState
impl StructuralPartialEq for ButtonLockState
Auto Trait Implementations§
impl Freeze for ButtonLockState
impl RefUnwindSafe for ButtonLockState
impl Send for ButtonLockState
impl Sync for ButtonLockState
impl Unpin for ButtonLockState
impl UnwindSafe for ButtonLockState
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