#[non_exhaustive]pub enum FlockfileError {
Toml(String),
Yaml(String),
Json(String),
Json5(String),
NoApps,
}Expand description
Error type returned from Flockfile::parse
#[non_exhaustive]: shep-core is a library crate, so an out-of-tree
consumer can match this exhaustively and a new variant would break them
with no version bump to say so (IR-20). Growth is anticipated per
backend, not per format: .js Flockfiles do NOT appear here, because
shep-core never executes anything — the node bridge lives in shep-cli
(commands::lifecycle) and feeds its output back through
FlockFormat::Json, which is what this module’s own doc promises.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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
Trait Implementations§
Source§impl Clone for FlockfileError
impl Clone for FlockfileError
Source§fn clone(&self) -> FlockfileError
fn clone(&self) -> FlockfileError
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 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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
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
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.