pub struct StreamDescriptor<'a> {
pub descriptor_type: DescriptorType,
pub index: u16,
pub object_name: &'a str,
pub localized_description: LocalizedStringRef,
pub clock_domain_index: u16,
pub stream_flags: StreamFlags,
pub current_format: StreamFormat,
pub avb_interface_index: u16,
pub buffer_length: u32,
/* private fields */
}Expand description
A STREAM_INPUT or STREAM_OUTPUT descriptor (Table 7-8).
Fields§
§descriptor_type: DescriptorType§index: u16§object_name: &'a str§localized_description: LocalizedStringRef§clock_domain_index: u16§stream_flags: StreamFlags§current_format: StreamFormat§avb_interface_index: u16§buffer_length: u32Nanoseconds of buffering.
Implementations§
Source§impl<'a> StreamDescriptor<'a>
impl<'a> StreamDescriptor<'a>
pub fn decode(bytes: &'a [u8]) -> Result<Self, DecodeError>
pub fn is_input(&self) -> bool
Sourcepub fn formats(&self) -> impl Iterator<Item = StreamFormat> + 'a
pub fn formats(&self) -> impl Iterator<Item = StreamFormat> + 'a
The formats the stream supports.
Sourcepub fn is_media_clock(&self) -> bool
pub fn is_media_clock(&self) -> bool
Whether the stream carries a media clock: CRF now, or a stream that offers CRF, which an audio stream does not, sending its clock as audio whose presentation times carry it, as the Mac’s media clock outputs can.
Trait Implementations§
Source§impl<'a> Clone for StreamDescriptor<'a>
impl<'a> Clone for StreamDescriptor<'a>
impl<'a> Copy for StreamDescriptor<'a>
Source§impl<'a> Debug for StreamDescriptor<'a>
impl<'a> Debug for StreamDescriptor<'a>
impl<'a> Eq for StreamDescriptor<'a>
Source§impl<'a> PartialEq for StreamDescriptor<'a>
impl<'a> PartialEq for StreamDescriptor<'a>
impl<'a> StructuralPartialEq for StreamDescriptor<'a>
Auto Trait Implementations§
impl<'a> Forget for StreamDescriptor<'a>
impl<'a> Freeze for StreamDescriptor<'a>
impl<'a> Move for StreamDescriptor<'a>
impl<'a> RefUnwindSafe for StreamDescriptor<'a>
impl<'a> Send for StreamDescriptor<'a>
impl<'a> Sync for StreamDescriptor<'a>
impl<'a> Unpin for StreamDescriptor<'a>
impl<'a> UnsafeUnpin for StreamDescriptor<'a>
impl<'a> UnwindSafe for StreamDescriptor<'a>
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