[][src]Enum reaper_medium::RecordingInput

pub enum RecordingInput {
    Mono(u32),
    MonoReaRoute(u32),
    Stereo(u32),
    StereoReaRoute(u32),
    Midi {
        device_id: Option<MidiInputDeviceId>,
        channel: Option<Channel>,
    },
}

Recording input of a track.

Variants

Mono(u32)

Index refers to a single mono channel.

MonoReaRoute(u32)

Index refers to a single ReaRoute mono channel.

Stereo(u32)

Index refers to the first of two channels in a stereo channel pair.

StereoReaRoute(u32)

Index refers to the first of two channels in a ReaRoute stereo channel pair.

Midi

Fields of Midi

device_id: Option<MidiInputDeviceId>channel: Option<Channel>

Implementations

impl RecordingInput[src]

pub fn try_from_raw(
    rec_input_index: i32
) -> Result<RecordingInput, TryFromRawError<i32>>
[src]

Converts an integer as returned by the low-level API to a recording input.

Errors

Fails if the given integer is not a valid recording input index.

pub fn to_raw(&self) -> i32[src]

Converts this value to an integer as expected by the low-level API.

Trait Implementations

impl Clone for RecordingInput[src]

impl Copy for RecordingInput[src]

impl Debug for RecordingInput[src]

impl Eq for RecordingInput[src]

impl Hash for RecordingInput[src]

impl PartialEq<RecordingInput> for RecordingInput[src]

impl StructuralEq for RecordingInput[src]

impl StructuralPartialEq for RecordingInput[src]

Auto Trait Implementations

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.