pub enum CompositeEffectWaveform {
Noop,
Click,
Thud,
Spin,
QuickRise,
SlowRise,
QuickFall,
LightTick,
LowTick,
// some variants omitted
}Variants§
Noop
No vibration.
Click
A sharp, crisp click waveform.
Thud
A dull, heavy impact waveform.
Spin
A spinning or rotating sensation.
QuickRise
A waveform with a rapid onset.
SlowRise
A waveform with a gradual onset.
QuickFall
A waveform with a rapid decay.
LightTick
A light, short tick waveform.
LowTick
A low-frequency tick waveform.
Implementations§
Source§impl CompositeEffectWaveform
impl CompositeEffectWaveform
pub fn from_primitive(prim: u32) -> Option<CompositeEffectWaveform>
pub fn from_primitive_allow_unknown(prim: u32) -> CompositeEffectWaveform
pub fn unknown() -> CompositeEffectWaveform
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for CompositeEffectWaveform
impl Clone for CompositeEffectWaveform
Source§fn clone(&self) -> CompositeEffectWaveform
fn clone(&self) -> CompositeEffectWaveform
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 CompositeEffectWaveform
impl Debug for CompositeEffectWaveform
Source§impl<D> Decode<CompositeEffectWaveform, D> for CompositeEffectWaveformwhere
D: ResourceDialect,
impl<D> Decode<CompositeEffectWaveform, D> for CompositeEffectWaveformwhere
D: ResourceDialect,
Source§fn new_empty() -> CompositeEffectWaveform
fn new_empty() -> CompositeEffectWaveform
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<CompositeEffectWaveform, D> for CompositeEffectWaveformwhere
D: ResourceDialect,
impl<D> Encode<CompositeEffectWaveform, D> for CompositeEffectWaveformwhere
D: ResourceDialect,
Source§impl Hash for CompositeEffectWaveform
impl Hash for CompositeEffectWaveform
Source§impl Ord for CompositeEffectWaveform
impl Ord for CompositeEffectWaveform
Source§fn cmp(&self, other: &CompositeEffectWaveform) -> Ordering
fn cmp(&self, other: &CompositeEffectWaveform) -> 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 CompositeEffectWaveform
impl PartialEq for CompositeEffectWaveform
Source§impl PartialOrd for CompositeEffectWaveform
impl PartialOrd for CompositeEffectWaveform
Source§impl TypeMarker for CompositeEffectWaveform
impl TypeMarker for CompositeEffectWaveform
Source§type Owned = CompositeEffectWaveform
type Owned = CompositeEffectWaveform
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for CompositeEffectWaveform
impl ValueTypeMarker for CompositeEffectWaveform
Source§type Borrowed<'a> = CompositeEffectWaveform
type Borrowed<'a> = CompositeEffectWaveform
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<CompositeEffectWaveform as TypeMarker>::Owned,
) -> <CompositeEffectWaveform as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CompositeEffectWaveform as TypeMarker>::Owned, ) -> <CompositeEffectWaveform as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for CompositeEffectWaveform
impl Eq for CompositeEffectWaveform
impl StructuralPartialEq for CompositeEffectWaveform
Auto Trait Implementations§
impl Freeze for CompositeEffectWaveform
impl RefUnwindSafe for CompositeEffectWaveform
impl Send for CompositeEffectWaveform
impl Sync for CompositeEffectWaveform
impl Unpin for CompositeEffectWaveform
impl UnwindSafe for CompositeEffectWaveform
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