pub struct BridgeLatency { /* private fields */ }Expand description
Latency a bridge incurs, measured in frames and packets.
The two axes are independent: frame latency reflects fixed sample/block delay, while packet latency reflects how many in-flight packets the bridge may hold (for example a jitter buffer’s late-packet window).
Implementations§
Source§impl BridgeLatency
impl BridgeLatency
Sourcepub fn frames_and_packets(frames: u64, packets: u32) -> Self
pub fn frames_and_packets(frames: u64, packets: u32) -> Self
Returns a latency with both a frame and a packet component.
Sourcepub fn frame_count(self) -> u64
pub fn frame_count(self) -> u64
Returns the frame component of this latency.
Sourcepub fn packet_count(self) -> u32
pub fn packet_count(self) -> u32
Returns the packet component of this latency.
Trait Implementations§
Source§impl Clone for BridgeLatency
impl Clone for BridgeLatency
Source§fn clone(&self) -> BridgeLatency
fn clone(&self) -> BridgeLatency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BridgeLatency
Source§impl Debug for BridgeLatency
impl Debug for BridgeLatency
Source§impl Default for BridgeLatency
impl Default for BridgeLatency
Source§fn default() -> BridgeLatency
fn default() -> BridgeLatency
Returns the “default value” for a type. Read more
impl Eq for BridgeLatency
Source§impl PartialEq for BridgeLatency
impl PartialEq for BridgeLatency
Source§fn eq(&self, other: &BridgeLatency) -> bool
fn eq(&self, other: &BridgeLatency) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BridgeLatency
Auto Trait Implementations§
impl Freeze for BridgeLatency
impl RefUnwindSafe for BridgeLatency
impl Send for BridgeLatency
impl Sync for BridgeLatency
impl Unpin for BridgeLatency
impl UnsafeUnpin for BridgeLatency
impl UnwindSafe for BridgeLatency
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