pub enum Error {
CargoMetadata(Error),
RustdocInvocation {
message: String,
},
RustdocParse(Error),
FormatVersionMismatch {
expected: u32,
found: u32,
},
Io(Error),
Config {
message: String,
},
Generate {
source: Box<Error>,
index_summary: String,
},
}Expand description
All errors produced by the aidoc pipeline.
Variants§
CargoMetadata(Error)
cargo metadata failed while enumerating workspace crates.
RustdocInvocation
Invoking cargo +nightly rustdoc failed at the process level
(non-zero exit, missing toolchain, etc.).
RustdocParse(Error)
Parsing the rustdoc JSON output failed.
FormatVersionMismatch
The rustdoc JSON output uses a format_version this crate does not
yet support. Bumping rustdoc-types is the typical fix.
Fields
Io(Error)
An I/O error while reading rustdoc JSON or writing output artifacts.
Config
Configuration parsing or validation failed (bad
[package.metadata.aidoc], unknown projection, etc.).
Generate
The generate stage failed. Carries a compact index-stage summary so callers can report both the successful indexing pass and the failure site without an out-of-band channel.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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