Skip to main content

SafeDiscoveryReport

Struct SafeDiscoveryReport 

Source
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

Source

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

Source§

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

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

impl Default for SafeDiscoveryReport

Source§

fn default() -> SafeDiscoveryReport

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

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<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

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, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

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

Source§

type Error = Infallible

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

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

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.