#[repr(u16)]pub enum ForceFeedbackStatusKind {
Stopped = 0,
Playing = 1,
}
Expand description
Force feedback status events.
Variants§
Implementations§
Source§impl ForceFeedbackStatusKind
impl ForceFeedbackStatusKind
Sourcepub fn iter() -> EnumIterator<Self> ⓘ
pub fn iter() -> EnumIterator<Self> ⓘ
An iterator over all values of the enum.
Source§impl ForceFeedbackStatusKind
impl ForceFeedbackStatusKind
Sourcepub fn from_code(code: u16) -> Result<Self, RangeError>
pub fn from_code(code: u16) -> Result<Self, RangeError>
Instantiates the enum from a raw code value.
Trait Implementations§
Source§impl BitmaskTrait for ForceFeedbackStatusKind
impl BitmaskTrait for ForceFeedbackStatusKind
Source§type Index = ForceFeedbackStatusKind
type Index = ForceFeedbackStatusKind
The type that the bitmask can be indexed by.
Source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
Source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
Source§impl Clone for ForceFeedbackStatusKind
impl Clone for ForceFeedbackStatusKind
Source§fn clone(&self) -> ForceFeedbackStatusKind
fn clone(&self) -> ForceFeedbackStatusKind
Returns a copy 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 ForceFeedbackStatusKind
impl Debug for ForceFeedbackStatusKind
Source§impl<'de> Deserialize<'de> for ForceFeedbackStatusKind
impl<'de> Deserialize<'de> for ForceFeedbackStatusKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ForceFeedbackStatusKind> for u16
impl From<ForceFeedbackStatusKind> for u16
Source§fn from(v: ForceFeedbackStatusKind) -> Self
fn from(v: ForceFeedbackStatusKind) -> Self
Converts to this type from the input type.
Source§impl Hash for ForceFeedbackStatusKind
impl Hash for ForceFeedbackStatusKind
Source§impl Ord for ForceFeedbackStatusKind
impl Ord for ForceFeedbackStatusKind
Source§fn cmp(&self, other: &ForceFeedbackStatusKind) -> Ordering
fn cmp(&self, other: &ForceFeedbackStatusKind) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ForceFeedbackStatusKind
impl PartialEq for ForceFeedbackStatusKind
Source§impl PartialOrd for ForceFeedbackStatusKind
impl PartialOrd for ForceFeedbackStatusKind
Source§impl Serialize for ForceFeedbackStatusKind
impl Serialize for ForceFeedbackStatusKind
Source§impl TryFrom<u16> for ForceFeedbackStatusKind
impl TryFrom<u16> for ForceFeedbackStatusKind
impl Copy for ForceFeedbackStatusKind
impl Eq for ForceFeedbackStatusKind
impl StructuralPartialEq for ForceFeedbackStatusKind
Auto Trait Implementations§
impl Freeze for ForceFeedbackStatusKind
impl RefUnwindSafe for ForceFeedbackStatusKind
impl Send for ForceFeedbackStatusKind
impl Sync for ForceFeedbackStatusKind
impl Unpin for ForceFeedbackStatusKind
impl UnwindSafe for ForceFeedbackStatusKind
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