#[repr(C)]pub struct ForceFeedbackStatusEvent {
pub time: EventTime,
pub kind: ForceFeedbackStatusKind,
pub value: i32,
/* private fields */
}
Expand description
An event that indicates the status of a force feedback effect.
Fields§
§time: EventTime
The timestamp associated with the event.
kind: ForceFeedbackStatusKind
The kind of status update.
value: i32
The value or state associated with the update.
Implementations§
Source§impl<'a> ForceFeedbackStatusEvent
impl<'a> ForceFeedbackStatusEvent
Sourcepub const fn new(
time: EventTime,
kind: ForceFeedbackStatusKind,
value: i32,
) -> Self
pub const fn new( time: EventTime, kind: ForceFeedbackStatusKind, value: i32, ) -> Self
Creates a new event from the given code and value.
Sourcepub unsafe fn from_event<E: AsRef<input_event>>(event: &E) -> &Self
pub unsafe fn from_event<E: AsRef<input_event>>(event: &E) -> &Self
Reinterpret a generic event without checking for validity.
Sourcepub unsafe fn from_event_mut(event: &mut InputEvent) -> &mut Self
pub unsafe fn from_event_mut(event: &mut InputEvent) -> &mut Self
Reinterpret a mutable generic event without checking for validity.
Sourcepub fn into_event(self) -> InputEvent
pub fn into_event(self) -> InputEvent
A generic input event.
Sourcepub fn as_event(&self) -> &InputEvent
pub fn as_event(&self) -> &InputEvent
A generic input event reference.
Sourcepub unsafe fn as_event_mut(&mut self) -> &mut InputEvent
pub unsafe fn as_event_mut(&mut self) -> &mut InputEvent
A mutable generic input event reference.
Trait Implementations§
Source§impl AsRef<InputEvent> for ForceFeedbackStatusEvent
impl AsRef<InputEvent> for ForceFeedbackStatusEvent
Source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<input_event> for ForceFeedbackStatusEvent
impl AsRef<input_event> for ForceFeedbackStatusEvent
Source§fn as_ref(&self) -> &input_event
fn as_ref(&self) -> &input_event
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ForceFeedbackStatusEvent
impl Clone for ForceFeedbackStatusEvent
Source§fn clone(&self) -> ForceFeedbackStatusEvent
fn clone(&self) -> ForceFeedbackStatusEvent
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 ForceFeedbackStatusEvent
impl Debug for ForceFeedbackStatusEvent
Source§impl<'de> Deserialize<'de> for ForceFeedbackStatusEvent
impl<'de> Deserialize<'de> for ForceFeedbackStatusEvent
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<'a> From<&'a ForceFeedbackStatusEvent> for &'a InputEvent
impl<'a> From<&'a ForceFeedbackStatusEvent> for &'a InputEvent
Source§fn from(event: &'a ForceFeedbackStatusEvent) -> Self
fn from(event: &'a ForceFeedbackStatusEvent) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ForceFeedbackStatusEvent> for EventRef<'a>
impl<'a> From<&'a ForceFeedbackStatusEvent> for EventRef<'a>
Source§fn from(event: &'a ForceFeedbackStatusEvent) -> Self
fn from(event: &'a ForceFeedbackStatusEvent) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ForceFeedbackStatusEvent> for InputEvent
impl<'a> From<&'a ForceFeedbackStatusEvent> for InputEvent
Source§fn from(event: &'a ForceFeedbackStatusEvent) -> Self
fn from(event: &'a ForceFeedbackStatusEvent) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a mut ForceFeedbackStatusEvent> for EventMut<'a>
impl<'a> From<&'a mut ForceFeedbackStatusEvent> for EventMut<'a>
Source§fn from(event: &'a mut ForceFeedbackStatusEvent) -> Self
fn from(event: &'a mut ForceFeedbackStatusEvent) -> Self
Converts to this type from the input type.
Source§impl From<ForceFeedbackStatusEvent> for Event
impl From<ForceFeedbackStatusEvent> for Event
Source§fn from(event: ForceFeedbackStatusEvent) -> Self
fn from(event: ForceFeedbackStatusEvent) -> Self
Converts to this type from the input type.
Source§impl From<ForceFeedbackStatusEvent> for InputEvent
impl From<ForceFeedbackStatusEvent> for InputEvent
Source§fn from(event: ForceFeedbackStatusEvent) -> Self
fn from(event: ForceFeedbackStatusEvent) -> Self
Converts to this type from the input type.
Source§impl GenericEvent for ForceFeedbackStatusEvent
impl GenericEvent for ForceFeedbackStatusEvent
Source§fn event_kind(&self) -> EventKind
fn event_kind(&self) -> EventKind
The event kind.
Source§fn with_event(event: InputEvent) -> Result<Self, RangeError>
fn with_event(event: InputEvent) -> Result<Self, RangeError>
Interprets a generic event into a concrete event type.
Source§unsafe fn with_event_unchecked(event: InputEvent) -> Self
unsafe fn with_event_unchecked(event: InputEvent) -> Self
Interprets a generic event into a concrete event type. Read more
Source§fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
fn from_ref(event: &InputEvent) -> Result<&Self, RangeError>
Interprets a generic event reference into a concrete event type.
Source§fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
fn from_mut(event: &mut InputEvent) -> Result<&mut Self, RangeError>
Interprets a mutable generic event reference into a concrete event type.
Source§impl Hash for ForceFeedbackStatusEvent
impl Hash for ForceFeedbackStatusEvent
Source§impl Ord for ForceFeedbackStatusEvent
impl Ord for ForceFeedbackStatusEvent
Source§fn cmp(&self, other: &ForceFeedbackStatusEvent) -> Ordering
fn cmp(&self, other: &ForceFeedbackStatusEvent) -> 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 ForceFeedbackStatusEvent
impl PartialEq for ForceFeedbackStatusEvent
Source§impl PartialOrd for ForceFeedbackStatusEvent
impl PartialOrd for ForceFeedbackStatusEvent
Source§impl Serialize for ForceFeedbackStatusEvent
impl Serialize for ForceFeedbackStatusEvent
Source§impl<'a> TryFrom<&'a InputEvent> for &'a ForceFeedbackStatusEvent
impl<'a> TryFrom<&'a InputEvent> for &'a ForceFeedbackStatusEvent
Source§type Error = RangeError
type Error = RangeError
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<&'a mut InputEvent> for &'a mut ForceFeedbackStatusEvent
impl<'a> TryFrom<&'a mut InputEvent> for &'a mut ForceFeedbackStatusEvent
Source§type Error = RangeError
type Error = RangeError
The type returned in the event of a conversion error.
Source§impl TryFrom<InputEvent> for ForceFeedbackStatusEvent
impl TryFrom<InputEvent> for ForceFeedbackStatusEvent
Source§type Error = RangeError
type Error = RangeError
The type returned in the event of a conversion error.
impl Copy for ForceFeedbackStatusEvent
impl Eq for ForceFeedbackStatusEvent
impl StructuralPartialEq for ForceFeedbackStatusEvent
Auto Trait Implementations§
impl Freeze for ForceFeedbackStatusEvent
impl RefUnwindSafe for ForceFeedbackStatusEvent
impl Send for ForceFeedbackStatusEvent
impl Sync for ForceFeedbackStatusEvent
impl Unpin for ForceFeedbackStatusEvent
impl UnwindSafe for ForceFeedbackStatusEvent
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