Struct gilrs::ff::BaseEffect
source · pub struct BaseEffect {
pub kind: BaseEffectType,
pub scheduling: Replay,
pub envelope: Envelope,
}
Expand description
Basic building block used to create more complex force feedback effects.
For each base effect you can specify it’s type, for how long should it be played and it’s strength during playback.
Fields§
§kind: BaseEffectType
Type of base effect.
scheduling: Replay
Defines playback duration and delays between each repetition.
envelope: Envelope
Basic attenuation function.
Trait Implementations§
source§impl Clone for BaseEffect
impl Clone for BaseEffect
source§fn clone(&self) -> BaseEffect
fn clone(&self) -> BaseEffect
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 BaseEffect
impl Debug for BaseEffect
source§impl Default for BaseEffect
impl Default for BaseEffect
source§fn default() -> BaseEffect
fn default() -> BaseEffect
Returns the “default value” for a type. Read more
source§impl PartialEq for BaseEffect
impl PartialEq for BaseEffect
source§fn eq(&self, other: &BaseEffect) -> bool
fn eq(&self, other: &BaseEffect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BaseEffect
impl StructuralPartialEq for BaseEffect
Auto Trait Implementations§
impl RefUnwindSafe for BaseEffect
impl Send for BaseEffect
impl Sync for BaseEffect
impl Unpin for BaseEffect
impl UnwindSafe for BaseEffect
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