Struct libspa::param::format::MediaSubtype
source · pub struct MediaSubtype(pub spa_media_subtype);
Expand description
Different media sub-types
Tuple Fields§
§0: spa_media_subtype
Implementations§
source§impl MediaSubtype
impl MediaSubtype
pub const Unknown: Self = _
pub const Raw: Self = _
pub const Dsp: Self = _
pub const Dsd: Self = _
pub const Mp3: Self = _
pub const Aac: Self = _
pub const Vorbis: Self = _
pub const Wma: Self = _
pub const Ra: Self = _
pub const Sbc: Self = _
pub const Adpcm: Self = _
pub const G723: Self = _
pub const G726: Self = _
pub const G729: Self = _
pub const Amr: Self = _
pub const Gsm: Self = _
pub const H264: Self = _
pub const Mjpg: Self = _
pub const Dv: Self = _
pub const Mpegts: Self = _
pub const H263: Self = _
pub const Mpeg1: Self = _
pub const Mpeg2: Self = _
pub const Mpeg4: Self = _
pub const Xvid: Self = _
pub const Vc1: Self = _
pub const Vp8: Self = _
pub const Vp9: Self = _
pub const Bayer: Self = _
pub const Jpeg: Self = _
pub const Midi: Self = _
pub fn is_audio(&self) -> bool
pub fn is_video(&self) -> bool
pub fn is_image(&self) -> bool
pub fn is_binary(&self) -> bool
pub fn is_stream(&self) -> bool
pub fn is_application(&self) -> bool
sourcepub fn from_raw(raw: spa_media_subtype) -> Self
pub fn from_raw(raw: spa_media_subtype) -> Self
Obtain a MediaSubtype
from a raw spa_media_subtype
variant.
sourcepub fn as_raw(&self) -> spa_media_subtype
pub fn as_raw(&self) -> spa_media_subtype
Get the raw spa_sys::spa_media_subtype
representing this MediaSubtype
.
Trait Implementations§
source§impl Clone for MediaSubtype
impl Clone for MediaSubtype
source§fn clone(&self) -> MediaSubtype
fn clone(&self) -> MediaSubtype
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaSubtype
impl Debug for MediaSubtype
source§impl PartialEq for MediaSubtype
impl PartialEq for MediaSubtype
source§fn eq(&self, other: &MediaSubtype) -> bool
fn eq(&self, other: &MediaSubtype) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MediaSubtype
impl PartialOrd for MediaSubtype
source§fn partial_cmp(&self, other: &MediaSubtype) -> Option<Ordering>
fn partial_cmp(&self, other: &MediaSubtype) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MediaSubtype
impl Eq for MediaSubtype
impl StructuralPartialEq for MediaSubtype
Auto Trait Implementations§
impl RefUnwindSafe for MediaSubtype
impl Send for MediaSubtype
impl Sync for MediaSubtype
impl Unpin for MediaSubtype
impl UnwindSafe for MediaSubtype
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