pub struct MediaType(pub spa_media_type);
Expand description
Different media types
Tuple Fields§
§0: spa_media_type
Implementations§
source§impl MediaType
impl MediaType
pub const Unknown: Self = _
pub const Audio: Self = _
pub const Video: Self = _
pub const Image: Self = _
pub const Binary: Self = _
pub const Stream: Self = _
pub const Application: Self = _
sourcepub fn from_raw(raw: spa_media_type) -> Self
pub fn from_raw(raw: spa_media_type) -> Self
Obtain a MediaType
from a raw spa_media_type
variant.
sourcepub fn as_raw(&self) -> spa_media_type
pub fn as_raw(&self) -> spa_media_type
Get the raw spa_sys::spa_media_type
representing this MediaType
.
Trait Implementations§
source§impl PartialEq for MediaType
impl PartialEq for MediaType
impl Copy for MediaType
impl Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnwindSafe for MediaType
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