pub struct PacRecord {
pub codec_id: CodecId,
pub codec_specific_capabilities: Vec<CodecCapability>,
pub metadata: Vec<Metadata>,
}
Expand description
A Published Audio Capability (PAC) record. Published Audio Capabilities represent the capabilities of a given peer to transmit or receive Audio capabilities, exposed in PAC records, represent the server audio capabilities independent of available resources at any given time. Audio capabilities do not distinguish between unicast Audio Streams or broadcast Audio Streams.
Fields§
§codec_id: CodecId
§codec_specific_capabilities: Vec<CodecCapability>
§metadata: Vec<Metadata>
Trait Implementations§
Source§impl Decodable for PacRecord
impl Decodable for PacRecord
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 PacRecord
Auto Trait Implementations§
impl Freeze for PacRecord
impl RefUnwindSafe for PacRecord
impl Send for PacRecord
impl Sync for PacRecord
impl Unpin for PacRecord
impl UnwindSafe for PacRecord
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