Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

Vibrate

pub struct Vibrate(pub HapticPattern);
Expand description

Produce a given haptic feedback pattern.

Tuple Fields

0: HapticPattern

Trait Implementations

impl AsScalar<4> for Vibrate

fn as_scalar(&self) -> [u32; 4]

impl Debug for Vibrate

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl FromScalar<4> for Vibrate

fn from_scalar(value: [u32; 4]) -> Self

impl MessageId for Vibrate

const ID: MessageId = 0usize

unique message identifier

const SERVER: &'static str = "os/haptics"

target server name

impl Scalar for Vibrate

fn to_message(&self) -> ScalarMessage
where Self: Sized,

Auto Trait Implementations

impl Freeze for Vibrate

impl RefUnwindSafe for Vibrate

impl Send for Vibrate

impl Sync for Vibrate

impl Unpin for Vibrate

impl UnsafeUnpin for Vibrate

impl UnwindSafe for Vibrate