pub struct Played {
pub representation: String,
pub device: String,
pub seconds: f64,
pub rate: u32,
pub channels: usize,
pub format: &'static str,
pub buffer_secs: f64,
pub granted_buffer_secs: Option<f64>,
pub underruns: usize,
pub underruns_seen_by: &'static str,
}Expand description
What a live device played, as its player reported it back.
Fields§
§representation: String§device: StringAs the destination named it, alsa:hw:1.
seconds: f64§rate: u32§channels: usize§format: &'static strThe ALSA sample format the samples were sent in, FLOAT_LE.
buffer_secs: f64§granted_buffer_secs: Option<f64>What the device gave for the buffer asked; None where the player stated none.
underruns: usize§underruns_seen_by: &'static strWhat saw the underruns underruns counts, and what it cannot see.
Trait Implementations§
impl StructuralPartialEq for Played
Auto Trait Implementations§
impl Freeze for Played
impl RefUnwindSafe for Played
impl Send for Played
impl Sync for Played
impl Unpin for Played
impl UnsafeUnpin for Played
impl UnwindSafe for Played
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more