pub enum PreflightCheck {
Pass,
Warning(String),
Blocker(String),
}Expand description
Outcome of a publisher’s pre-flight self-check.
Each variant signals a different release-pipeline reaction:
Pass— no concern detected; publishing may proceed.Warning(msg)— surface the message to the operator (and review log) but do not block the publish. Use for soft signals like “remote already has a tag at this version but contents match”.Blocker(msg)— abort before the publish stage runs. Use for hard prerequisites the publisher knows it cannot satisfy at runtime, e.g. “homebrew tap repo not reachable”, “winget-pkgs fork not configured”.
Named Pass (not Clean) to avoid nominal collision with
crate::preflight::PublisherState::Clean, which describes the
already-published state of a publisher rather than a self-check result.
Variants§
Pass
Publisher’s pre-flight checks completed with no concerns.
Warning(String)
Publisher detected a non-blocking concern; surface it but continue.
Blocker(String)
Publisher detected a blocking concern; abort before the publish stage.
Trait Implementations§
Source§impl Clone for PreflightCheck
impl Clone for PreflightCheck
Source§fn clone(&self) -> PreflightCheck
fn clone(&self) -> PreflightCheck
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 PreflightCheck
impl Debug for PreflightCheck
Source§impl PartialEq for PreflightCheck
impl PartialEq for PreflightCheck
Source§fn eq(&self, other: &PreflightCheck) -> bool
fn eq(&self, other: &PreflightCheck) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PreflightCheck
impl StructuralPartialEq for PreflightCheck
Auto Trait Implementations§
impl Freeze for PreflightCheck
impl RefUnwindSafe for PreflightCheck
impl Send for PreflightCheck
impl Sync for PreflightCheck
impl Unpin for PreflightCheck
impl UnsafeUnpin for PreflightCheck
impl UnwindSafe for PreflightCheck
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.