Enum libpulse_binding::channelmap::Position[][src]

#[repr(C)]pub enum Position {
    Invalid,
    Mono,
    FrontLeft,
    FrontRight,
    FrontCenter,
    RearCenter,
    RearLeft,
    RearRight,
    Lfe,
    FrontLeftOfCenter,
    FrontRightOfCenter,
    SideLeft,
    SideRight,
    Aux0,
    Aux1,
    Aux2,
    Aux3,
    Aux4,
    Aux5,
    Aux6,
    Aux7,
    Aux8,
    Aux9,
    Aux10,
    Aux11,
    Aux12,
    Aux13,
    Aux14,
    Aux15,
    Aux16,
    Aux17,
    Aux18,
    Aux19,
    Aux20,
    Aux21,
    Aux22,
    Aux23,
    Aux24,
    Aux25,
    Aux26,
    Aux27,
    Aux28,
    Aux29,
    Aux30,
    Aux31,
    TopCenter,
    TopFrontLeft,
    TopFrontRight,
    TopFrontCenter,
    TopRearLeft,
    TopRearRight,
    TopRearCenter,
}

A list of channel labels.

Note, certain aliases, specifically Left, Right, Center and Subwoofer, available in the equivalent C enum are not provided here, since Rust does not allow aliases.

Variants

Invalid

Invalid.

Mono

Mono.

FrontLeft

Apple, Dolby call this ‘Left’.

FrontRight

Apple, Dolby call this ‘Right’.

FrontCenter

Apple, Dolby call this ‘Center’.

RearCenter

Microsoft calls this ‘Back Center’, Apple calls this ‘Center Surround’, Dolby calls this ‘Surround Rear Center’.

RearLeft

Microsoft calls this ‘Back Left’, Apple calls this ‘Left Surround’, Dolby calls this ‘Surround Rear Left’.

RearRight

Microsoft calls this ‘Back Right’, Apple calls this ‘Right Surround’, Dolby calls this ‘Surround Rear Right’.

Lfe

Aka subwoofer. Microsoft calls this ‘Low Frequency’, Apple calls this ‘LFEScreen’.

FrontLeftOfCenter

Apple, Dolby call this ‘Left Center’.

FrontRightOfCenter

Apple, Dolby call this ‘Right Center’.

SideLeft

Apple calls this ‘Left Surround Direct’, Dolby calls this ‘Surround Left’.

SideRight

Apple calls this ‘Right Surround Direct’, Dolby calls this ‘Surround Right’.

Aux0

Auxillary 0.

Aux1

Auxillary 1.

Aux2

Auxillary 2.

Aux3

Auxillary 3.

Aux4

Auxillary 4.

Aux5

Auxillary 5.

Aux6

Auxillary 6.

Aux7

Auxillary 7.

Aux8

Auxillary 8.

Aux9

Auxillary 9.

Aux10

Auxillary 10.

Aux11

Auxillary 11.

Aux12

Auxillary 12.

Aux13

Auxillary 13.

Aux14

Auxillary 14.

Aux15

Auxillary 15.

Aux16

Auxillary 16.

Aux17

Auxillary 17.

Aux18

Auxillary 18.

Aux19

Auxillary 19.

Aux20

Auxillary 20.

Aux21

Auxillary 21.

Aux22

Auxillary 22.

Aux23

Auxillary 23.

Aux24

Auxillary 24.

Aux25

Auxillary 25.

Aux26

Auxillary 26.

Aux27

Auxillary 27.

Aux28

Auxillary 28.

Aux29

Auxillary 29.

Aux30

Auxillary 30.

Aux31

Auxillary 31.

TopCenter

Apple calls this ‘Top Center Surround’.

TopFrontLeft

Apple calls this ‘Vertical Height Left’.

TopFrontRight

Apple calls this ‘Vertical Height Right’.

TopFrontCenter

Apple calls this ‘Vertical Height Center’.

TopRearLeft

Microsoft and Apple call this ‘Top Back Left’.

TopRearRight

Microsoft and Apple call this ‘Top Back Right’.

TopRearCenter

Microsoft and Apple call this ‘Top Back Center’.

Implementations

impl Position[src]

pub fn to_mask(self) -> PositionMask[src]

Makes a bit mask from a channel position.

pub fn to_string(pos: Self) -> Option<Cow<'static, str>>[src]

Gets a text label for the specified channel position.

pub fn to_pretty_string(pos: Self) -> Option<String>[src]

Gets a human readable text label for the specified channel position.

pub fn from_string(s: &str) -> Self[src]

Creates a new instance from a string representation, as given by to_string().

Trait Implementations

impl Clone for Position[src]

impl Copy for Position[src]

impl Debug for Position[src]

impl Default for Position[src]

impl Eq for Position[src]

impl From<pa_channel_position_t> for Position[src]

impl FromPrimitive for Position[src]

impl PartialEq<Position> for Position[src]

impl StructuralEq for Position[src]

impl StructuralPartialEq for Position[src]

impl ToPrimitive for Position[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.