pub enum Effect {
Show 22 variants
Click,
DoubleClick,
Tick,
Thud,
Pop,
HeavyClick,
Ringtone1,
Ringtone2,
Ringtone3,
Ringtone4,
Ringtone5,
Ringtone6,
Ringtone7,
Ringtone8,
Ringtone9,
Ringtone10,
Ringtone11,
Ringtone12,
Ringtone13,
Ringtone14,
Ringtone15,
TextureTick,
// some variants omitted
}Variants§
Click
A sharp, crisp click.
DoubleClick
Two sharp, crisp clicks in quick succession.
Tick
A short, light tap.
Thud
A dull, heavy impact.
Pop
A sudden, percussive sensation.
HeavyClick
A more intense version of CLICK.
Ringtone1
The ringtone effects are vendor-specific variations. A method to query these may be added in the future if needed.
Ringtone2
Ringtone3
Ringtone4
Ringtone5
Ringtone6
Ringtone7
Ringtone8
Ringtone9
Ringtone10
Ringtone11
Ringtone12
Ringtone13
Ringtone14
Ringtone15
TextureTick
A tick with a textured feel.
Implementations§
Trait Implementations§
Source§impl<D> Decode<Effect, D> for Effectwhere
D: ResourceDialect,
impl<D> Decode<Effect, D> for Effectwhere
D: ResourceDialect,
Source§impl Ord for Effect
impl Ord for Effect
Source§impl PartialOrd for Effect
impl PartialOrd for Effect
Source§impl TypeMarker for Effect
impl TypeMarker for Effect
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 Effect
impl ValueTypeMarker for Effect
Source§type Borrowed<'a> = Effect
type Borrowed<'a> = Effect
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: &<Effect as TypeMarker>::Owned,
) -> <Effect as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Effect as TypeMarker>::Owned, ) -> <Effect as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for Effect
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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