pub enum GsdConfigError {
Io(Error),
Json(Error),
Missing(PathBuf),
}Expand description
Errors produced while reading or writing GSD’s project config.
Shape follows crate::workflow::WorkflowError — Io/Json #[from]
variants so every call site converts with ?, plus a named variant for the
“there is no file at all” case so the message says which path was missing
instead of surfacing a bare NotFound.
Variants§
Io(Error)
Filesystem operation failed.
Json(Error)
JSON parse or serialization failed.
Missing(PathBuf)
No GSD config exists at the expected path.
Trait Implementations§
Source§impl Debug for GsdConfigError
impl Debug for GsdConfigError
Source§impl Display for GsdConfigError
impl Display for GsdConfigError
Source§impl Error for GsdConfigError
impl Error for GsdConfigError
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<Error> for GsdConfigError
impl From<Error> for GsdConfigError
Auto Trait Implementations§
impl !RefUnwindSafe for GsdConfigError
impl !UnwindSafe for GsdConfigError
impl Freeze for GsdConfigError
impl Send for GsdConfigError
impl Sync for GsdConfigError
impl Unpin for GsdConfigError
impl UnsafeUnpin for GsdConfigError
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