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§
impl Copy for MediaType
impl Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl Freeze for MediaType
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