[−][src]Enum libpulse_binding::channelmap::Position
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
InvalidMonoFrontLeftApple, Dolby call this ‘Left’.
FrontRightApple, Dolby call this ‘Right’.
FrontCenterApple, Dolby call this ‘Center’.
RearCenterMicrosoft calls this ‘Back Center’, Apple calls this ‘Center Surround’, Dolby calls this ‘Surround Rear Center’.
RearLeftMicrosoft calls this ‘Back Left’, Apple calls this ‘Left Surround’, Dolby calls this ‘Surround Rear Left’.
RearRightMicrosoft calls this ‘Back Right’, Apple calls this ‘Right Surround’, Dolby calls this ‘Surround Rear Right’.
LfeAka subwoofer. Microsoft calls this ‘Low Frequency’, Apple calls this ‘LFEScreen’.
FrontLeftOfCenterApple, Dolby call this ‘Left Center’.
FrontRightOfCenterApple, Dolby call this ‘Right Center’.
SideLeftApple calls this ‘Left Surround Direct’, Dolby calls this ‘Surround Left’.
SideRightApple calls this ‘Right Surround Direct’, Dolby calls this ‘Surround Right’.
Aux0Aux1Aux2Aux3Aux4Aux5Aux6Aux7Aux8Aux9Aux10Aux11Aux12Aux13Aux14Aux15Aux16Aux17Aux18Aux19Aux20Aux21Aux22Aux23Aux24Aux25Aux26Aux27Aux28Aux29Aux30Aux31TopCenterApple calls this ‘Top Center Surround’.
TopFrontLeftApple calls this ‘Vertical Height Left’.
TopFrontRightApple calls this ‘Vertical Height Right’.
TopFrontCenterApple calls this ‘Vertical Height Center’.
TopRearLeftMicrosoft and Apple call this ‘Top Back Left’.
TopRearRightMicrosoft and Apple call this ‘Top Back Right’.
TopRearCenterMicrosoft and Apple call this ‘Top Back Center’.
Methods
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 From<Position> for pa_channel_position_t[src]
impl From<pa_channel_position_t> for Position[src]
fn from(p: pa_channel_position_t) -> Self[src]
impl Default for Position[src]
impl Clone for Position[src]
fn clone(&self) -> Position[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<Position> for Position[src]
fn eq(&self, other: &Position) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for Position[src]
impl Copy for Position[src]
impl Debug for Position[src]
Auto Trait Implementations
impl Unpin for Position
impl Send for Position
impl Sync for Position
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,