Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

StreamStats

Struct StreamStats 

Source
#[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: u32

Interrupts handled.

§sectors: u32

Sectors stored at a destination.

§discarded_sectors: u32

Sectors 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: u32

The longest handler call, in Timer 2 ticks (needs Config::time_handler).

§phase: u32

The current Phase, as its number.

§error: u32

The code of the latest failure (Failure::code); 0 after a start.

§requests_done: u32

Requests that ended Outcome::Done.

§requests_cancelled: u32

Requests that ended Outcome::Cancelled.

§requests_failed: u32

Requests that ended Outcome::Failed.

§chained: u32

Requests started by chaining onto the previous one, without a seek.

§resumed: u32

Requests put back in the queue to resume after an error.

§rejected: u32

Submissions refused because the queue was full.

Trait Implementations§

Source§

impl Clone for StreamStats

Source§

fn clone(&self) -> StreamStats

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StreamStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StreamStats

Source§

fn default() -> StreamStats

Returns the “default value” for a type. Read more
Source§

impl PartialEq for StreamStats

Source§

fn eq(&self, other: &StreamStats) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for StreamStats

Source§

impl Eq for StreamStats

Source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.