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 more