pub struct EnvPreflightReport {
pub checks: usize,
pub failures: Vec<EnvCheckFailure>,
pub warnings: Vec<EnvCheckFailure>,
}Expand description
Aggregate result of one preflight pass.
Fields§
§checks: usizeDistinct checks evaluated (after de-duplication across sources).
failures: Vec<EnvCheckFailure>§warnings: Vec<EnvCheckFailure>Advisory checks that failed: the environment lacks a tool the run would
PREFER but does not require, because the declaring surface degrades
gracefully (e.g. a missing cross-compile toolchain that the build stage
falls back from). Surfaced as warnings; never flips ok.
Implementations§
Source§impl EnvPreflightReport
impl EnvPreflightReport
pub fn ok(&self) -> bool
Sourcepub fn note_failure(&mut self, needed_by: &str, message: &str)
pub fn note_failure(&mut self, needed_by: &str, message: &str)
Record a failure discovered outside the requirement-evaluation engine
(e.g. the offline cosign key-load verification, which needs to spawn a
tool and so cannot live in this pure module). Counts toward checks and
flips ok() to false, so a single non-ok report still drives the
caller’s abort/exit-non-zero decision.
Trait Implementations§
Source§impl Clone for EnvPreflightReport
impl Clone for EnvPreflightReport
Source§fn clone(&self) -> EnvPreflightReport
fn clone(&self) -> EnvPreflightReport
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 EnvPreflightReport
impl Debug for EnvPreflightReport
Source§impl Display for EnvPreflightReport
impl Display for EnvPreflightReport
Auto Trait Implementations§
impl Freeze for EnvPreflightReport
impl RefUnwindSafe for EnvPreflightReport
impl Send for EnvPreflightReport
impl Sync for EnvPreflightReport
impl Unpin for EnvPreflightReport
impl UnsafeUnpin for EnvPreflightReport
impl UnwindSafe for EnvPreflightReport
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.