#[non_exhaustive]pub enum FlockfileError {
Toml(String),
Yaml(String),
Json(String),
Json5(String),
NoApps,
UnknownKeys {
keys: Vec<String>,
},
}Expand description
Error type returned from Flockfile::parse.
#[non_exhaustive]: an out-of-tree consumer could otherwise match
this exhaustively and a new variant would break them silently. Growth
is anticipated per backend, not per format: .js Flockfiles never
appear here, since shep-core never executes anything. The node bridge
lives in shep-cli, which feeds its output back through
FlockFormat::Json.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Toml(String)
TOML backend rejected the source (carries its message)
Yaml(String)
YAML backend rejected the source
Json(String)
JSON backend rejected the source
Json5(String)
JSON5 backend rejected the source
NoApps
The document parsed but declared no apps
UnknownKeys
The document named one or more keys no field claims.
A Flockfile is hand-written, unlike the same AppConfig/
ProbeConfig shape riding the wire,
where an unknown field means a newer peer rather than a typo.
keys names every offending key (dotted path for a nested one, e.g.
app.0.readiness_probe.<the misspelled key>) so one refusal lists
every typo instead of one refusal per run.
Trait Implementations§
Source§impl Clone for FlockfileError
impl Clone for FlockfileError
Source§fn clone(&self) -> FlockfileError
fn clone(&self) -> FlockfileError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlockfileError
impl Debug for FlockfileError
Source§impl Display for FlockfileError
impl Display for FlockfileError
impl Eq for FlockfileError
Source§impl Error for FlockfileError
impl Error for FlockfileError
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 FlockfileError
impl PartialEq for FlockfileError
impl StructuralPartialEq for FlockfileError
Auto Trait Implementations§
impl Freeze for FlockfileError
impl RefUnwindSafe for FlockfileError
impl Send for FlockfileError
impl Sync for FlockfileError
impl Unpin for FlockfileError
impl UnsafeUnpin for FlockfileError
impl UnwindSafe for FlockfileError
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<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
key and return true if they are equal.