#[non_exhaustive]pub struct StabilityReport {
pub sources: Vec<SourceStatus>,
pub default_basis_available: bool,
pub clone_risk: Vec<CloneRisk>,
pub confidence: Confidence,
pub changes_on: Vec<ChangeEvent>,
}Available on crate feature
device-id only.Expand description
The state of every source, with no values in it.
use sys_lib::device;
let report = device::report();
println!("{report}");
if !report.clone_risk.is_empty() {
println!("this id may be shared with other machines: {:?}", report.clone_risk);
}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.sources: Vec<SourceStatus>One per Anchor, in Anchor order.
default_basis_available: boolWhether Basis::Install has a usable source.
clone_risk: Vec<CloneRisk>What suggests this id may be shared; empty when nothing does.
confidence: ConfidenceHow far to trust the Basis::Install id.
changes_on: Vec<ChangeEvent>What would change the Basis::Install id on this OS.
Trait Implementations§
Source§impl Clone for StabilityReport
impl Clone for StabilityReport
Source§impl Debug for StabilityReport
impl Debug for StabilityReport
Source§impl Display for StabilityReport
impl Display for StabilityReport
impl Eq for StabilityReport
Source§impl PartialEq for StabilityReport
impl PartialEq for StabilityReport
impl StructuralPartialEq for StabilityReport
Auto Trait Implementations§
impl Forget for StabilityReport
impl Freeze for StabilityReport
impl Move for StabilityReport
impl RefUnwindSafe for StabilityReport
impl Send for StabilityReport
impl Sync for StabilityReport
impl Unpin for StabilityReport
impl UnsafeUnpin for StabilityReport
impl UnwindSafe for StabilityReport
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