Struct bt_avdtp::MediaCodecType
source · pub struct MediaCodecType(_);
Expand description
The type of the codec in the MediaCodec Service Capability
Valid values are defined in the Bluetooth Assigned Numbers and are
interpreted differently for different Media Types, so we do not interpret
them here.
Associated constants are provided that specify the value of MediaCodecType
for different codecs given the MediaType::Audio
.
See https://www.bluetooth.com/specifications/assigned-numbers/audio-video
Implementations§
source§impl MediaCodecType
impl MediaCodecType
pub const AUDIO_SBC: Self = _
pub const AUDIO_MPEG12: Self = _
pub const AUDIO_AAC: Self = _
pub const AUDIO_ATRAC: Self = _
pub const AUDIO_NON_A2DP: Self = _
pub fn new(num: u8) -> MediaCodecType
Trait Implementations§
source§impl Clone for MediaCodecType
impl Clone for MediaCodecType
source§fn clone(&self) -> MediaCodecType
fn clone(&self) -> MediaCodecType
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 MediaCodecType
impl Debug for MediaCodecType
source§impl PartialEq<MediaCodecType> for MediaCodecType
impl PartialEq<MediaCodecType> for MediaCodecType
source§fn eq(&self, other: &MediaCodecType) -> bool
fn eq(&self, other: &MediaCodecType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.