pub struct SafeDiscoveryReport {
pub plugins: Vec<DetailedPluginInfo>,
pub skipped: Vec<SafeDiscoverySkip>,
pub error: Option<String>,
}Expand description
Result of a crash-resistant scan: the plugins that introspected cleanly, plus a record of every plugin that was skipped and why.
Fields§
§plugins: Vec<DetailedPluginInfo>Plugins that introspected successfully.
skipped: Vec<SafeDiscoverySkip>Plugins that were skipped (crashed / timed out / failed), with the reason.
error: Option<String>Why the scan could not run at all, if it could not — the probe binary was missing or
unusable, so no plugin was examined. An empty report with error: None means the
scan ran and found nothing; an empty report with error: Some(..) means it never ran,
and a host should say so rather than claim there are no plugins installed.
Implementations§
Source§impl SafeDiscoveryReport
impl SafeDiscoveryReport
Sourcepub fn scan_ran(&self) -> bool
pub fn scan_ran(&self) -> bool
Whether the scan actually ran. false means Self::error explains why not, and
Self::plugins / Self::skipped are empty for that reason alone.
Trait Implementations§
Source§impl Debug for SafeDiscoveryReport
impl Debug for SafeDiscoveryReport
Source§impl Default for SafeDiscoveryReport
impl Default for SafeDiscoveryReport
Source§fn default() -> SafeDiscoveryReport
fn default() -> SafeDiscoveryReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SafeDiscoveryReport
impl RefUnwindSafe for SafeDiscoveryReport
impl Send for SafeDiscoveryReport
impl Sync for SafeDiscoveryReport
impl Unpin for SafeDiscoveryReport
impl UnsafeUnpin for SafeDiscoveryReport
impl UnwindSafe for SafeDiscoveryReport
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