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
BinarioWithoutExe(String)
ServicoWithoutServicos(String)
MissingEntry
ExeOutsideDir(PathBuf)
ServicoOutsideDir(PathBuf)
NomeViolation
VersaoViolation
DepsViolation
EtiquetasViolation
AutoresViolation
RepositorioViolation
DescricaoViolation
LicencaViolation
EdicaoViolation
CodePathViolation
LimitsViolation
BehaviorViolation
UpgradeViolation
SupervisorViolation
RestartWindowViolation
SupervisorOwnsCode(String)
AplicacaoViolation
AcaoViolation
AplicacaoOwnsCode(String)
AcaoOwnsCode(String)
MeshSlotsOnNonAplicacao
SupervisorSlotsOnNonSupervisor
ServicoSlotsOnNonServico
ForeignCodeSlot
MissingCi(String)
CiOnNonAcao
Implementations§
Source§impl LayoutError
impl LayoutError
Sourcepub fn nome_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn versao_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn deps_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn etiquetas_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn autores_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn repositorio_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn descricao_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn licenca_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn edicao_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn code_path_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn limits_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn behavior_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn upgrade_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn restart_window_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn supervisor_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn aplicacao_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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.
Sourcepub fn acao_violation<E: Display>(caixa: &Caixa, err: E) -> Self
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
impl LayoutError
Sourcepub fn mesh_slots_on_non_aplicacao(
caixa: &Caixa,
slots: Vec<&'static str>,
) -> Self
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.
Sourcepub fn supervisor_slots_on_non_supervisor(
caixa: &Caixa,
slots: Vec<&'static str>,
) -> Self
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.
Sourcepub fn servico_slots_on_non_servico(
caixa: &Caixa,
slots: Vec<&'static str>,
) -> Self
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.
Sourcepub fn foreign_code_slot(caixa: &Caixa, slots: Vec<&'static str>) -> Self
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
impl LayoutError
Sourcepub const fn missing_manifest(path: PathBuf) -> Self
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.
Sourcepub const fn missing_entry(kind: &'static str, path: PathBuf) -> Self
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.
Sourcepub fn missing_lib(caixa: &Caixa, expected: PathBuf) -> Self
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.
Sourcepub fn ci_on_non_acao(caixa: &Caixa) -> Self
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
impl LayoutError
Sourcepub fn binario_without_exe(caixa: &Caixa) -> Self
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.
Sourcepub fn servico_without_servicos(caixa: &Caixa) -> Self
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.
Sourcepub fn missing_ci(caixa: &Caixa) -> Self
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.
Sourcepub fn supervisor_owns_code(caixa: &Caixa) -> Self
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.
Sourcepub fn aplicacao_owns_code(caixa: &Caixa) -> Self
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.
Sourcepub fn acao_owns_code(caixa: &Caixa) -> Self
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
impl Debug for LayoutError
Source§impl Display for LayoutError
impl Display for LayoutError
impl Eq for LayoutError
Source§impl Error for LayoutError
impl Error for LayoutError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for LayoutError
impl PartialEq for LayoutError
impl StructuralPartialEq for LayoutError
Auto Trait Implementations§
impl Freeze for LayoutError
impl RefUnwindSafe for LayoutError
impl Send for LayoutError
impl Sync for LayoutError
impl Unpin for LayoutError
impl UnsafeUnpin for LayoutError
impl UnwindSafe for LayoutError
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
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
key and return true if they are equal.