pub enum CodecId {
Assigned(CodingFormat),
VendorSpecific {
company_id: CompanyId,
vendor_specific_codec_id: u16,
},
}
Expand description
Codec_ID communicated by a basic audio profile service/role.
Variants§
Assigned(CodingFormat)
From the Assigned Numbers. Format will not be
CodingFormat::VendorSpecific
VendorSpecific
Implementations§
Trait Implementations§
Source§impl Decodable for CodecId
impl Decodable for CodecId
type Error = Error
Source§fn decode(buf: &[u8]) -> (Result<Self, Self::Error>, usize)
fn decode(buf: &[u8]) -> (Result<Self, Self::Error>, usize)
Decodes into a new object or an error, and the number of bytes that
the decoding consumed. Should attempt to consume the entire item from
the buffer in the case of an error. If the item end cannot be determined,
return an error and consume the entirety of the bufer (
buf.len()
)Source§fn decode_multiple(
buf: &[u8],
max: Option<usize>,
) -> (Vec<Result<Self, Self::Error>>, usize)
fn decode_multiple( buf: &[u8], max: Option<usize>, ) -> (Vec<Result<Self, Self::Error>>, usize)
Tries to decode a collection of this object concatenated in a buffer.
Returns a vector of items (or errors) and the number of bytes consumed to
decode them.
Continues to decode items until the buffer is consumed or the max items.
If None, will decode the entire buffer.
impl StructuralPartialEq for CodecId
Auto Trait Implementations§
impl Freeze for CodecId
impl RefUnwindSafe for CodecId
impl Send for CodecId
impl Sync for CodecId
impl Unpin for CodecId
impl UnwindSafe for CodecId
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