Skip to main content

CiDecomposeFailure

Struct CiDecomposeFailure 

Source
pub struct CiDecomposeFailure {
    pub nome: String,
    pub source: DecomposeError,
}
Expand description

Typed :ci-decompose-failure view: the canonical surface every per-Acao consumer raises when canteiro_types::decompose refuses the caixa’s declared :ci run (a duplicate node name, a dependency on an undeclared node, a dependency cycle — every failure mode the sibling canteiro_types::DecomposeError enumerates). Carries the offending caixa’s :nome alongside the borrowed canteiro_types::DecomposeError source so the diagnostic reads caixa "<nome>": :ci decompose failed: <source> — naming which caixa.lisp needs author attention, not just the axis the consumer rejected.

Lifted from caixa-actions’ inline Error::Decompose { nome: String, #[source] source: DecomposeError } variant so a future per-Acao consumer (the deferred sui-supercacheci::canteiro::emit_gha workflow renderer named in the caixa-actions crate docs, the future per-Acao CR materializer that mirrors the sibling per-Servico / per-Aplicacao materializers the M4 roadmap acknowledges) reaches for the same typed view via #[from] instead of re-inlining the same nome: String, #[source] source: DecomposeError construction on its own call site — the second typed named-caixa diagnostic axis on the per-Acao consumer surface after the peer MissingCiSlot presence-gate axis.

Peer of MissingCiSlot on the per-Acao :ci-slot diagnostic axis (the presence gate reaches for MissingCiSlot via require_ci; the decompose gate reaches for CiDecomposeFailure on the borrowed canteiro_types::CiRun the presence gate returns). Peer of KindMismatch / ServicoCountMismatch on the sibling per-renderer entry-gate diagnostic axes — extends the same “one typed view per axis, carrying the offending caixa’s :nome + axis-specific detail, wrapped by every consumer via #[from]” discipline onto the canteiro_types::decompose axis on the per-Acao consumer surface.

The source field carries the borrowed canteiro_types::DecomposeError verbatim (rather than collapsing to a single opaque axis) so a future consumer that wants to fan on the specific decompose-failure arm — a feira lint sub-diagnostic that offers a :deps-repair suggestion on the MissingDependency arm but not the Cycle arm, a future per-Acao CR materializer’s admission webhook that surfaces the cycle path on rejection — reaches for err.source directly rather than re-parsing the Display bytes.

Fields§

§nome: String

The offending caixa’s :nome — names which caixa.lisp the consumer was handed, so the diagnostic doesn’t require the user to grep for it. Constructed via the lifted crate::Caixa::nome accessor’s .to_string() extension, matching the peer MissingCiSlot::nome / KindMismatch::nome / ServicoCountMismatch::nome nome-carrying axes.

§source: DecomposeError

The canteiro_types::decompose error the caixa’s :ci run tripped on — carried verbatim so a consumer that fans on the specific arm (Cycle / MissingDependency / DuplicateNode / …) reaches for the typed source rather than re-parsing the Display bytes.

Trait Implementations§

Source§

impl Debug for CiDecomposeFailure

Source§

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

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

impl Display for CiDecomposeFailure

Source§

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

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

impl Error for CiDecomposeFailure

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. 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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.