Struct cpal::InputStreamTimestamp
source · pub struct InputStreamTimestamp {
pub callback: StreamInstant,
pub capture: StreamInstant,
}
Expand description
A timestamp associated with a call to an input stream’s data callback.
Fields§
§callback: StreamInstant
The instant the stream’s data callback was invoked.
capture: StreamInstant
The instant that data was captured from the device.
E.g. The instant data was read from an ADC.
Trait Implementations§
source§impl Clone for InputStreamTimestamp
impl Clone for InputStreamTimestamp
source§fn clone(&self) -> InputStreamTimestamp
fn clone(&self) -> InputStreamTimestamp
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 InputStreamTimestamp
impl Debug for InputStreamTimestamp
source§impl Hash for InputStreamTimestamp
impl Hash for InputStreamTimestamp
source§impl PartialEq for InputStreamTimestamp
impl PartialEq for InputStreamTimestamp
source§fn eq(&self, other: &InputStreamTimestamp) -> bool
fn eq(&self, other: &InputStreamTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InputStreamTimestamp
impl Eq for InputStreamTimestamp
impl StructuralEq for InputStreamTimestamp
impl StructuralPartialEq for InputStreamTimestamp
Auto Trait Implementations§
impl RefUnwindSafe for InputStreamTimestamp
impl Send for InputStreamTimestamp
impl Sync for InputStreamTimestamp
impl Unpin for InputStreamTimestamp
impl UnwindSafe for InputStreamTimestamp
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