pub enum BakeError {
Store(StoreError),
Walk(WalkError),
Other(Error),
}Expand description
Errors from a bake run.
Store(StoreError) and Walk(WalkError) surface the typed source
errors from those modules — match on them when you need to
distinguish (e.g. “is this a schema-mismatch that needs re-bake?”).
Other carries the remaining anyhow-chained errors (cache I/O,
dedup hard-fails, duplicate-guid checks) — most consumers propagate
these untouched.
Variants§
Trait Implementations§
Source§impl Error for BakeError
impl Error for BakeError
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 From<StoreError> for BakeError
impl From<StoreError> for BakeError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BakeError
impl !RefUnwindSafe for BakeError
impl Send for BakeError
impl Sync for BakeError
impl Unpin for BakeError
impl UnsafeUnpin for BakeError
impl !UnwindSafe for BakeError
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