Struct cpal::OutputStreamTimestamp
source · pub struct OutputStreamTimestamp {
pub callback: StreamInstant,
pub playback: StreamInstant,
}
Expand description
A timestamp associated with a call to an output stream’s data callback.
Fields§
§callback: StreamInstant
The instant the stream’s data callback was invoked.
playback: StreamInstant
The predicted instant that data written will be delivered to the device for playback.
E.g. The instant data will be played by a DAC.
Trait Implementations§
source§impl Clone for OutputStreamTimestamp
impl Clone for OutputStreamTimestamp
source§fn clone(&self) -> OutputStreamTimestamp
fn clone(&self) -> OutputStreamTimestamp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutputStreamTimestamp
impl Debug for OutputStreamTimestamp
source§impl Hash for OutputStreamTimestamp
impl Hash for OutputStreamTimestamp
source§impl PartialEq<OutputStreamTimestamp> for OutputStreamTimestamp
impl PartialEq<OutputStreamTimestamp> for OutputStreamTimestamp
source§fn eq(&self, other: &OutputStreamTimestamp) -> bool
fn eq(&self, other: &OutputStreamTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.