pub struct ModulatorInstance {
pub kind: ModulatorKind,
pub magnitude_percent: f32,
pub effect_duration_bursts: u16,
pub rest_bursts: u16,
pub graded: bool,
pub full_scale_potential: Option<f32>,
pub driver_cortical_id: CorticalID,
}Expand description
One user-defined modulator and the driver area that owns it.
Fields§
§kind: ModulatorKind§magnitude_percent: f32§effect_duration_bursts: u16§rest_bursts: u16§graded: bool§full_scale_potential: Option<f32>§driver_cortical_id: CorticalIDImplementations§
Source§impl ModulatorInstance
impl ModulatorInstance
Sourcepub fn adopts_driver(&self) -> bool
pub fn adopts_driver(&self) -> bool
True when the driver is an existing area, not one created for this instance. An adopted driver keeps its own timing and is not deleted with the instance.
Sourcepub fn validate(&self) -> Result<(), ModulatorValidationError>
pub fn validate(&self) -> Result<(), ModulatorValidationError>
Reject fields that cannot produce a defined signal.
Trait Implementations§
Source§impl Clone for ModulatorInstance
impl Clone for ModulatorInstance
Source§impl Debug for ModulatorInstance
impl Debug for ModulatorInstance
Source§impl PartialEq for ModulatorInstance
impl PartialEq for ModulatorInstance
impl StructuralPartialEq for ModulatorInstance
Auto Trait Implementations§
impl Forget for ModulatorInstance
impl Freeze for ModulatorInstance
impl Move for ModulatorInstance
impl RefUnwindSafe for ModulatorInstance
impl Send for ModulatorInstance
impl Sync for ModulatorInstance
impl Unpin for ModulatorInstance
impl UnsafeUnpin for ModulatorInstance
impl UnwindSafe for ModulatorInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more