pub struct DiagnosticReport {
pub gpu: Result<GpuReport, String>,
pub system: SystemReport,
}Expand description
Everything known about where an app runs, to read or to paste into a bug report.
Fields§
§gpu: Result<GpuReport, String>The GPU, or why there is none.
system: SystemReportThe machine and the build.
Implementations§
Source§impl DiagnosticReport
impl DiagnosticReport
Sourcepub fn findings(&self) -> Vec<DiagnosticFinding>
pub fn findings(&self) -> Vec<DiagnosticFinding>
What in this report explains a slow or broken app, most serious first.
use ravenrs_core::{DiagnosticFinding, DiagnosticReport};
let report = DiagnosticReport { gpu: Err("no driver".into()), ..Default::default() };
assert_eq!(report.findings()[0], DiagnosticFinding::NoGpu("no driver".into()));Trait Implementations§
Source§impl Clone for DiagnosticReport
impl Clone for DiagnosticReport
Source§fn clone(&self) -> DiagnosticReport
fn clone(&self) -> DiagnosticReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiagnosticReport
impl Debug for DiagnosticReport
Source§impl Display for DiagnosticReport
impl Display for DiagnosticReport
impl Eq for DiagnosticReport
Source§impl PartialEq for DiagnosticReport
impl PartialEq for DiagnosticReport
impl StructuralPartialEq for DiagnosticReport
Auto Trait Implementations§
impl Freeze for DiagnosticReport
impl RefUnwindSafe for DiagnosticReport
impl Send for DiagnosticReport
impl Sync for DiagnosticReport
impl Unpin for DiagnosticReport
impl UnsafeUnpin for DiagnosticReport
impl UnwindSafe for DiagnosticReport
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