[][src]Struct gilrs::ff::Replay

pub struct Replay {
    pub after: Ticks,
    pub play_for: Ticks,
    pub with_delay: Ticks,
}

Defines scheduling of the basic force feedback effect.

       ____________            ____________            ____________
       |          |            |          |            |
_______|          |____________|          |____________|
 after   play_for   with_delay   play_for   with_delay   play_for

Fields

after: Ticks

Start playback after ticks after Effect::play() is called.

play_for: Ticks

Playback duration.

with_delay: Ticks

If playback should be repeated delay it for with_delay ticks.

Methods

impl Replay
[src]

pub fn dur(&self) -> Ticks
[src]

Returns duration of effect calculated as play_for + with_delay.

Trait Implementations

impl Copy for Replay
[src]

impl Default for Replay
[src]

impl PartialEq<Replay> for Replay
[src]

impl Clone for Replay
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Replay
[src]

Auto Trait Implementations

impl Send for Replay

impl Sync for Replay

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]