Skip to main content

ExplicitFeedbackDiagnostics

Struct ExplicitFeedbackDiagnostics 

Source
#[non_exhaustive]
pub struct ExplicitFeedbackDiagnostics {
Show 36 fields pub endpoint: u8, pub transfer_type: &'static str, pub link_speed: &'static str, pub interface_number: u8, pub alt_setting: u8, pub out_endpoint: u8, pub nominal_rate_hz: u32, pub out_service_interval_us: u32, pub out_max_packet_bytes: usize, pub out_bytes_per_frame: usize, pub feedback_interval: u8, pub feedback_refresh: u8, pub feedback_service_interval_us: u32, pub feedback_max_packet_bytes: usize, pub requested_packet_bytes: usize, pub transfer_slots: usize, pub packets_per_transfer: usize, pub transfer_timeout_ms: u32, pub per_service_interval_quirk: bool, pub post_alt_readback_hz: Option<u32>, pub timebase: Option<&'static str>, pub inferred_timebase: bool, pub reused_timebase: bool, pub successful_submissions: u64, pub submit_failures: u64, pub last_submit_error: Option<i32>, pub transfer_status_counts: [u64; 8], pub packet_status_counts: [u64; 8], pub accepted_reports: u64, pub rate_samples: u64, pub rate_min_frames: f64, pub rate_max_frames: f64, pub rate_mean_frames: f64, pub rate_variance_frames: f64, pub empty_polls: u64, pub rejected_reports: u64, /* private fields */
}
Expand description

Feedback endpoint geometry and observations for one stream. Status counts are indexed by libusb transfer status (0 completed, 1 error, 2 timed out, 3 cancelled, 4 stall, 5 no device, 6 overflow). Index 7 is unknown or unreported. An interrupt transfer has no separate packet status.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§endpoint: u8§transfer_type: &'static str§link_speed: &'static str§interface_number: u8§alt_setting: u8§out_endpoint: u8§nominal_rate_hz: u32§out_service_interval_us: u32§out_max_packet_bytes: usize§out_bytes_per_frame: usize§feedback_interval: u8§feedback_refresh: u8§feedback_service_interval_us: u32§feedback_max_packet_bytes: usize§requested_packet_bytes: usize§transfer_slots: usize§packets_per_transfer: usize§transfer_timeout_ms: u32§per_service_interval_quirk: bool§post_alt_readback_hz: Option<u32>§timebase: Option<&'static str>§inferred_timebase: bool§reused_timebase: bool

The current stream validated units already learned on this DAC session.

§successful_submissions: u64§submit_failures: u64§last_submit_error: Option<i32>

libusb submission error code, separate from completion status.

§transfer_status_counts: [u64; 8]§packet_status_counts: [u64; 8]§accepted_reports: u64§rate_samples: u64

Accepted unsmoothed observations, in frames per OUT service interval.

§rate_min_frames: f64§rate_max_frames: f64§rate_mean_frames: f64§rate_variance_frames: f64

Population variance before the configured timing policy. No audible smoothing tradeoff is inferred.

§empty_polls: u64§rejected_reports: u64

Implementations§

Source§

impl ExplicitFeedbackDiagnostics

Source

pub fn packet_samples(&self) -> impl Iterator<Item = &ExplicitFeedbackPacket>

One latest observation per outcome, including bytes from rejected reports.

Trait Implementations§

Source§

impl Clone for ExplicitFeedbackDiagnostics

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ExplicitFeedbackDiagnostics

Source§

impl Debug for ExplicitFeedbackDiagnostics

Source§

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

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

impl Default for ExplicitFeedbackDiagnostics

Source§

fn default() -> Self

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

impl Display for ExplicitFeedbackDiagnostics

Source§

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

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

impl PartialEq for ExplicitFeedbackDiagnostics

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExplicitFeedbackDiagnostics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.