pub struct Opl3DeviceStats {
pub data_writes: usize,
pub addr_writes: usize,
pub status_reads: usize,
pub samples_generated: usize,
}Expand description
The Opl3DeviceStats struct contains statistics about the OPL3 device.
It can be retrieved via the get_stats function on Opl3Device.
Fields§
§data_writes: usizeThe number of writes to the OPL3 data register since reset.
addr_writes: usizeThe number of writes to the OPL3 address register since reset.
status_reads: usizeThe number of reads from the OPL3 status register since reset.
samples_generated: usizeThe number of samples generated since reset. A stereo pair (left and right) is considered one sample.
Trait Implementations§
Source§impl Clone for Opl3DeviceStats
impl Clone for Opl3DeviceStats
Source§fn clone(&self) -> Opl3DeviceStats
fn clone(&self) -> Opl3DeviceStats
Returns a duplicate 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 Default for Opl3DeviceStats
impl Default for Opl3DeviceStats
Source§fn default() -> Opl3DeviceStats
fn default() -> Opl3DeviceStats
Returns the “default value” for a type. Read more
impl Copy for Opl3DeviceStats
Auto Trait Implementations§
impl Freeze for Opl3DeviceStats
impl RefUnwindSafe for Opl3DeviceStats
impl Send for Opl3DeviceStats
impl Sync for Opl3DeviceStats
impl Unpin for Opl3DeviceStats
impl UnwindSafe for Opl3DeviceStats
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