pub struct Layout {
pub timestamp_interval: u16,
pub timestamps_per_pdu: u8,
pub base_frequency: u32,
}Expand description
What a CRF stream carries, from its stream format.
Fields§
§timestamp_interval: u16Clock events from one timestamp to the next.
timestamps_per_pdu: u8§base_frequency: u32Implementations§
Source§impl Layout
impl Layout
Sourcepub fn of(format: StreamFormat) -> Option<Self>
pub fn of(format: StreamFormat) -> Option<Self>
The layout of a CRF stream format, when it is one this crate can send and receive: an audio sample clock at its nominal rate.
Sourcepub fn data_length(&self) -> usize
pub fn data_length(&self) -> usize
Octets of timestamps in each frame.
Sourcepub fn pdu_length(&self) -> usize
pub fn pdu_length(&self) -> usize
The AVTPDU’s octets: header and timestamps, as MSRP’s MaxFrameSize counts them.
Sourcepub fn events_per_frame(&self) -> u64
pub fn events_per_frame(&self) -> u64
Clock events each frame covers.
Sourcepub fn interval_nanos(&self) -> u64
pub fn interval_nanos(&self) -> u64
How often a frame goes out, in nanoseconds.
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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