#[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
§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§fn eq(&self, other: &ForceFeedbackStatusKind) -> bool
fn eq(&self, other: &ForceFeedbackStatusKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ForceFeedbackStatusKind
impl PartialOrd for ForceFeedbackStatusKind
source§fn partial_cmp(&self, other: &ForceFeedbackStatusKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ForceFeedbackStatusKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)