Skip to main content

LayoutError

Enum LayoutError 

Source
pub enum LayoutError {
Show 33 variants MissingManifest(PathBuf), MissingLib { caixa: String, expected: PathBuf, }, BinarioWithoutExe(String), ServicoWithoutServicos(String), MissingEntry { kind: &'static str, path: PathBuf, }, ExeOutsideDir(PathBuf), ServicoOutsideDir(PathBuf), NomeViolation { caixa: String, issue: String, }, VersaoViolation { caixa: String, issue: String, }, DepsViolation { caixa: String, issue: String, }, EtiquetasViolation { caixa: String, issue: String, }, AutoresViolation { caixa: String, issue: String, }, RepositorioViolation { caixa: String, issue: String, }, DescricaoViolation { caixa: String, issue: String, }, LicencaViolation { caixa: String, issue: String, }, EdicaoViolation { caixa: String, issue: String, }, CodePathViolation { caixa: String, issue: String, }, LimitsViolation { caixa: String, issue: String, }, BehaviorViolation { caixa: String, issue: String, }, UpgradeViolation { caixa: String, issue: String, }, SupervisorViolation { caixa: String, issue: String, }, RestartWindowViolation { caixa: String, issue: String, }, SupervisorOwnsCode(String), AplicacaoViolation { caixa: String, issue: String, }, AcaoViolation { caixa: String, issue: String, }, AplicacaoOwnsCode(String), AcaoOwnsCode(String), MeshSlotsOnNonAplicacao { caixa: String, kind: CaixaKind, slots: String, }, SupervisorSlotsOnNonSupervisor { caixa: String, kind: CaixaKind, slots: String, }, ServicoSlotsOnNonServico { caixa: String, kind: CaixaKind, slots: String, }, ForeignCodeSlot { caixa: String, kind: CaixaKind, slots: String, }, MissingCi(String), CiOnNonAcao { caixa: String, kind: CaixaKind, },
}

Variants§

§

MissingManifest(PathBuf)

§

MissingLib

Fields

§caixa: String
§expected: PathBuf
§

BinarioWithoutExe(String)

§

ServicoWithoutServicos(String)

§

MissingEntry

Fields

§kind: &'static str
§path: PathBuf
§

ExeOutsideDir(PathBuf)

§

ServicoOutsideDir(PathBuf)

§

NomeViolation

Fields

§caixa: String
§issue: String
§

VersaoViolation

Fields

§caixa: String
§issue: String
§

DepsViolation

Fields

§caixa: String
§issue: String
§

EtiquetasViolation

Fields

§caixa: String
§issue: String
§

AutoresViolation

Fields

§caixa: String
§issue: String
§

RepositorioViolation

Fields

§caixa: String
§issue: String
§

DescricaoViolation

Fields

§caixa: String
§issue: String
§

LicencaViolation

Fields

§caixa: String
§issue: String
§

EdicaoViolation

Fields

§caixa: String
§issue: String
§

CodePathViolation

Fields

§caixa: String
§issue: String
§

LimitsViolation

Fields

§caixa: String
§issue: String
§

BehaviorViolation

Fields

§caixa: String
§issue: String
§

UpgradeViolation

Fields

§caixa: String
§issue: String
§

SupervisorViolation

Fields

§caixa: String
§issue: String
§

RestartWindowViolation

Fields

§caixa: String
§issue: String
§

SupervisorOwnsCode(String)

§

AplicacaoViolation

Fields

§caixa: String
§issue: String
§

AcaoViolation

Fields

§caixa: String
§issue: String
§

AplicacaoOwnsCode(String)

§

AcaoOwnsCode(String)

§

MeshSlotsOnNonAplicacao

Fields

§caixa: String
§slots: String
§

SupervisorSlotsOnNonSupervisor

Fields

§caixa: String
§slots: String
§

ServicoSlotsOnNonServico

Fields

§caixa: String
§slots: String
§

ForeignCodeSlot

Fields

§caixa: String
§slots: String
§

MissingCi(String)

§

CiOnNonAcao

Fields

§caixa: String

Implementations§

Source§

impl LayoutError

Source

pub fn nome_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::NomeViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn versao_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::VersaoViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn deps_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::DepsViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn etiquetas_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::EtiquetasViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn autores_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::AutoresViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn repositorio_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::RepositorioViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn descricao_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::DescricaoViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn licenca_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::LicencaViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn edicao_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::EdicaoViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn code_path_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::CodePathViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn limits_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::LimitsViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn behavior_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::BehaviorViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn upgrade_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::UpgradeViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn restart_window_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::RestartWindowViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn supervisor_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::SupervisorViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn aplicacao_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::AplicacaoViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source

pub fn acao_violation<E: Display>(caixa: &Caixa, err: E) -> Self

Construct a LayoutError::AcaoViolation wrapping err under caixa.nome(). Folds the uniform { caixa: caixa.nome().to_string(), issue: err.to_string() } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.

Source§

impl LayoutError

Source

pub fn mesh_slots_on_non_aplicacao( caixa: &Caixa, slots: Vec<&'static str>, ) -> Self

Construct a LayoutError::MeshSlotsOnNonAplicacao naming the offending slot list under caixa.nome() at caixa.kind(). Folds the uniform { caixa: caixa.nome().to_string(), kind: caixa.kind(), slots: slots.join(" ") } four-field construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn supervisor_slots_on_non_supervisor( caixa: &Caixa, slots: Vec<&'static str>, ) -> Self

Construct a LayoutError::SupervisorSlotsOnNonSupervisor naming the offending slot list under caixa.nome() at caixa.kind(). Folds the uniform { caixa: caixa.nome().to_string(), kind: caixa.kind(), slots: slots.join(" ") } four-field construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn servico_slots_on_non_servico( caixa: &Caixa, slots: Vec<&'static str>, ) -> Self

Construct a LayoutError::ServicoSlotsOnNonServico naming the offending slot list under caixa.nome() at caixa.kind(). Folds the uniform { caixa: caixa.nome().to_string(), kind: caixa.kind(), slots: slots.join(" ") } four-field construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn foreign_code_slot(caixa: &Caixa, slots: Vec<&'static str>) -> Self

Construct a LayoutError::ForeignCodeSlot naming the offending slot list under caixa.nome() at caixa.kind(). Folds the uniform { caixa: caixa.nome().to_string(), kind: caixa.kind(), slots: slots.join(" ") } four-field construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source§

impl LayoutError

Source

pub const fn missing_manifest(path: PathBuf) -> Self

Construct a LayoutError::MissingManifest naming the resolved caixa.lisp path the layout gate probed for at StandardLayout::verify’s top-of-body manifest-existence check.

Folds the uniform Self::MissingManifest(path) one-slot tuple-literal onto one substrate primitive so the sole StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded tuple-literal block. Peer of the sibling Self::missing_entry { kind, path } ctor on the same envelope’s declared-entry-existence axis, and mirror-symmetric sibling of the sibling Self::missing_lib { caixa, expected } ctor on the enclosing envelope’s per-caixa required-fallback-path axis: the top-level manifest-existence gate now routes its emit-site through the same substrate- primitive discipline every sibling variant on the same LayoutError envelope carries, closing the last un-lifted <Variant>(PathBuf) tuple-newtype variant on the envelope carried through a direct open-coded construction (the peer Self::ExeOutsideDir / Self::ServicoOutsideDir <Variant>(PathBuf) variants stay on their pre-lift tuple-variant-constructor coercion inside StandardLayout::probe_sandboxed_declared_entry’s outside_ctor: fn(PathBuf) -> LayoutError function-pointer parameter — the substrate primitive on that axis is the sandbox-probe helper itself, so the paired variant ctors are already substrate-canonical at their wire-up site by construction).

The PathBuf parameter takes ownership of the resolved root.join("caixa.lisp") path from the wire-up site’s Path::join product — byte-equal to the pre-lift Self::MissingManifest(manifest) tuple-literal on the same owned PathBuf fixture. #[must_use] fires a compile warning at any wire-up that mistakenly discards the constructed error rather than routing it through return Err(…).

Every future consumer that wants to construct this variant outside StandardLayout::verify — a deferred caixa.pleme.io/v1alpha1/Caixa CR materializer’s admission- webhook re-check probing the resolved manifest path against a mounted cluster-local filesystem snapshot, a future feira validate --manifest-exists per-caixa admission verb re-running the manifest-existence gate on demand, a per-cluster overlay resolver rejecting a :placement-scoped manifest omission against a cluster-local snapshot — now reaches the variant through one call rather than re-inlining the two-line tuple-literal in lockstep with the in-crate wire-up site.

Source

pub const fn missing_entry(kind: &'static str, path: PathBuf) -> Self

Construct a LayoutError::MissingEntry naming the missing declared entry at path under the canonical kind label from crate::render::LAYOUT_MISSING_ENTRY_KIND_BIBLIOTECA / crate::render::LAYOUT_MISSING_ENTRY_KIND_EXE / crate::render::LAYOUT_MISSING_ENTRY_KIND_SERVICO / crate::render::LAYOUT_MISSING_ENTRY_KIND_BEHAVIOR_CALLBACK / crate::render::LAYOUT_MISSING_ENTRY_KIND_UPGRADE_SCRIPT. Folds the uniform { kind, path } two-slot construction onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded struct-literal block.

pub const fn — matches the sibling Self::missing_manifest pub const fn shape on the same LayoutError envelope’s path-carrying tuple-newtype axis. The body is a pure two-field struct-literal (Self::MissingEntry { kind, path } — no .to_string() / .into() / accessor projection on either arg, unlike the sibling Self::missing_lib / Self::ci_on_non_acao ctors that route through caixa.nome().to_string()), so the const-eval surface widens with no body change. Every downstream consumer that wants to fold a per-arm layout diagnostic into a const position (a const MISSING_BIBLIOTECA: LayoutError = LayoutError::missing_entry(LAYOUT_MISSING_ENTRY_KIND_BIBLIOTECA, PathBuf::new()); fixture the future M4 caixa.pleme.io/v1alpha1/Caixa CR materializer’s admission-webhook per-kind rejection-body lookup table reaches for, a compile-time per-arm diagnostic registry the LSP hover renderer materializes per typed-slot fixture, a const-context probe the future feira validate --entry-exists per-caixa verb consults) now reads through one const dispatch on the substrate primitive rather than being forced onto the runtime code path.

Source

pub fn missing_lib(caixa: &Caixa, expected: PathBuf) -> Self

Construct a LayoutError::MissingLib naming the offending caixa.nome() and the resolved fallback expected path.

Folds the uniform Self::MissingLib { caixa: caixa.nome() .to_string(), expected } two-slot struct-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded struct-literal block, projecting the caixa slot through the paired crate::Caixa::nome accessor — the same discipline the sibling Self::missing_entry { kind, path } ctor and the [layout_nome_only_ctors!] { caixa }-only tuple-variant ctor family already take on the same envelope.

Source

pub fn ci_on_non_acao(caixa: &Caixa) -> Self

Construct a LayoutError::CiOnNonAcao naming the offending caixa.nome() and its declared :kind.

Folds the uniform Self::CiOnNonAcao { caixa: caixa.nome() .to_string(), kind: caixa.kind() } two-slot struct-literal onto one substrate primitive so every wire-up on this variant (today the sole crate::Caixa::validate_ci_kind_coherence call site at caixa-core/src/manifest.rs:5586 — the deferred caixa.pleme.io/v1alpha1/Caixa CR admission webhook and a future feira validate --ci-kind per-caixa verb sit at the same axis) reads through one dispatch rather than the pre-lift open-coded struct-literal block. Both slots project through the paired crate::Caixa::nome / crate::Caixa::kind accessors — the same discipline every sibling ctor on this envelope (Self::missing_lib on { caixa, expected }, the [layout_nome_only_ctors!] family on { caixa }-only tuple-variants, the [layout_slot_kind_ctors!] family on { caixa, kind, slots }) already takes.

Source§

impl LayoutError

Source

pub fn binario_without_exe(caixa: &Caixa) -> Self

Construct a LayoutError::BinarioWithoutExe naming the offending caixa.nome(). Folds the uniform Self::BinarioWithoutExe(caixa.nome().to_string()) one-field tuple-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn servico_without_servicos(caixa: &Caixa) -> Self

Construct a LayoutError::ServicoWithoutServicos naming the offending caixa.nome(). Folds the uniform Self::ServicoWithoutServicos(caixa.nome().to_string()) one-field tuple-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn missing_ci(caixa: &Caixa) -> Self

Construct a LayoutError::MissingCi naming the offending caixa.nome(). Folds the uniform Self::MissingCi(caixa.nome().to_string()) one-field tuple-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn supervisor_owns_code(caixa: &Caixa) -> Self

Construct a LayoutError::SupervisorOwnsCode naming the offending caixa.nome(). Folds the uniform Self::SupervisorOwnsCode(caixa.nome().to_string()) one-field tuple-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn aplicacao_owns_code(caixa: &Caixa) -> Self

Construct a LayoutError::AplicacaoOwnsCode naming the offending caixa.nome(). Folds the uniform Self::AplicacaoOwnsCode(caixa.nome().to_string()) one-field tuple-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Source

pub fn acao_owns_code(caixa: &Caixa) -> Self

Construct a LayoutError::AcaoOwnsCode naming the offending caixa.nome(). Folds the uniform Self::AcaoOwnsCode(caixa.nome().to_string()) one-field tuple-literal onto one substrate primitive so every StandardLayout::verify wire-up on this variant reads through one dispatch rather than the pre-lift open-coded block.

Trait Implementations§

Source§

impl Debug for LayoutError

Source§

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

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

impl Display for LayoutError

Source§

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

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

impl Eq for LayoutError

Source§

impl Error for LayoutError

1.30.0 · 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
Source§

impl PartialEq for LayoutError

Source§

fn eq(&self, other: &LayoutError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LayoutError

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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 = !

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.