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
impl Copy for OutputStreamTimestamp
impl Eq for OutputStreamTimestamp
impl StructuralPartialEq for OutputStreamTimestamp
Auto Trait Implementations§
impl Freeze for OutputStreamTimestamp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)