Struct sorceress::server::Control[][src]

pub struct Control { /* fields omitted */ }

A synth control’s ID and value pair.

Used to set initial values for controls when creating new synths with SynthNew.

Implementations

impl Control[src]

pub fn new(id: impl Into<ControlID>, value: impl Into<ControlValue>) -> Control[src]

Creates a new control using the given control ID and value. The control ID may be specified as a String, &str, or i32. Constant control values may be specified as i32 or f32 values. Audio or control bus values must be constructed explicitly using the ControlValue::AudioBus or ControlValue::ControlBus enum variants.

Trait Implementations

impl Clone for Control[src]

impl Debug for Control[src]

impl From<Control> for ControlRange[src]

fn from(control: Control) -> ControlRange[src]

Converts to a ControlRange with a single value.

impl PartialEq<Control> for Control[src]

impl PartialOrd<Control> for Control[src]

impl StructuralPartialEq for Control[src]

Auto Trait Implementations

impl RefUnwindSafe for Control

impl Send for Control

impl Sync for Control

impl Unpin for Control

impl UnwindSafe for Control

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.