#[repr(C)]pub struct StreamStats {
pub irq_count: u32,
pub sectors: u32,
pub discarded_sectors: u32,
pub max_irq_ticks: u32,
pub phase: u32,
pub error: u32,
pub requests_done: u32,
pub requests_cancelled: u32,
pub requests_failed: u32,
pub chained: u32,
pub resumed: u32,
pub rejected: u32,
}Expand description
Counters, published as one block (PSX_CD_STATS) for tools that read
guest memory. All wrap at 2^32.
Fields§
§irq_count: u32Interrupts handled.
sectors: u32Sectors stored at a destination.
discarded_sectors: u32Sectors popped and dropped: after a cancel, after the last sector of a request while the Pause was on its way, or with nothing to store to.
max_irq_ticks: u32The longest handler call, in Timer 2 ticks (needs
Config::time_handler).
phase: u32The current Phase, as its number.
error: u32The code of the latest failure (Failure::code); 0 after a start.
requests_done: u32Requests that ended Outcome::Done.
requests_cancelled: u32Requests that ended Outcome::Cancelled.
requests_failed: u32Requests that ended Outcome::Failed.
chained: u32Requests started by chaining onto the previous one, without a seek.
resumed: u32Requests put back in the queue to resume after an error.
rejected: u32Submissions refused because the queue was full.
Trait Implementations§
Source§impl Clone for StreamStats
impl Clone for StreamStats
Source§fn clone(&self) -> StreamStats
fn clone(&self) -> StreamStats
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamStats
impl Debug for StreamStats
Source§impl Default for StreamStats
impl Default for StreamStats
Source§fn default() -> StreamStats
fn default() -> StreamStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for StreamStats
impl PartialEq for StreamStats
impl Copy for StreamStats
impl Eq for StreamStats
impl StructuralPartialEq for StreamStats
Auto Trait Implementations§
impl Freeze for StreamStats
impl RefUnwindSafe for StreamStats
impl Send for StreamStats
impl Sync for StreamStats
impl Unpin for StreamStats
impl UnsafeUnpin for StreamStats
impl UnwindSafe for StreamStats
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)