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 for OutputStreamTimestamp
impl PartialEq 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 ==
.impl Copy for OutputStreamTimestamp
impl Eq for OutputStreamTimestamp
impl StructuralEq for OutputStreamTimestamp
impl StructuralPartialEq for OutputStreamTimestamp
Auto Trait Implementations§
impl RefUnwindSafe for OutputStreamTimestamp
impl Send for OutputStreamTimestamp
impl Sync for OutputStreamTimestamp
impl Unpin for OutputStreamTimestamp
impl UnwindSafe for OutputStreamTimestamp
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