pub enum DebtError {
Shape(String),
Malformed {
gate: String,
path: String,
detail: String,
},
TwoFormats,
AlreadyBaselined,
LegacyBlocksBaseline,
NothingToMigrate,
}Expand description
A debt file that cannot be trusted, or a verb the state refuses.
Variants§
Shape(String)
The file is not YAML of this shape.
Malformed
One entry is not of this shape; the gate and path locate it.
Fields
TwoFormats
Both the legacy list and the dimensional file are present.
AlreadyBaselined
A baseline was requested over an existing debt file.
LegacyBlocksBaseline
A baseline was requested while the legacy list is still in place.
NothingToMigrate
A migration was requested with no legacy list to migrate.
Trait Implementations§
impl Eq for DebtError
Source§impl Error for DebtError
impl Error for DebtError
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()
impl StructuralPartialEq for DebtError
Auto Trait Implementations§
impl Freeze for DebtError
impl RefUnwindSafe for DebtError
impl Send for DebtError
impl Sync for DebtError
impl Unpin for DebtError
impl UnsafeUnpin for DebtError
impl UnwindSafe for DebtError
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<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.