pub struct PreflightResult {
pub warnings: PreflightWarnings,
pub has_critical: bool,
pub is_valid: bool,
}Expand description
Result of running core preflight checks (no_std compatible).
This struct aggregates warnings from all core checks. Platform-specific
checks (like system configuration) are handled by the tacet crate.
Fields§
§warnings: PreflightWarningsAll warnings collected from preflight checks.
has_critical: boolWhether any critical warnings were found.
is_valid: boolWhether the measurement setup is considered valid.
Implementations§
Source§impl PreflightResult
impl PreflightResult
Sourcepub fn add_sanity_warning(&mut self, warning: SanityWarning)
pub fn add_sanity_warning(&mut self, warning: SanityWarning)
Add a sanity warning.
Sourcepub fn add_autocorr_warning(&mut self, warning: AutocorrWarning)
pub fn add_autocorr_warning(&mut self, warning: AutocorrWarning)
Add an autocorrelation warning.
Sourcepub fn add_resolution_warning(&mut self, warning: ResolutionWarning)
pub fn add_resolution_warning(&mut self, warning: ResolutionWarning)
Add a resolution warning.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if there are any warnings.
Trait Implementations§
Source§impl Clone for PreflightResult
impl Clone for PreflightResult
Source§fn clone(&self) -> PreflightResult
fn clone(&self) -> PreflightResult
Returns a duplicate of the value. Read more
1.0.0 · 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 PreflightResult
impl Debug for PreflightResult
Source§impl Default for PreflightResult
impl Default for PreflightResult
Source§fn default() -> PreflightResult
fn default() -> PreflightResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreflightResult
impl<'de> Deserialize<'de> for PreflightResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreflightResult
impl RefUnwindSafe for PreflightResult
impl Send for PreflightResult
impl Sync for PreflightResult
impl Unpin for PreflightResult
impl UnwindSafe for PreflightResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.