pub enum CompileCommandsError {
TooLarge {
actual_bytes: u64,
max_bytes: u64,
},
Read(Error),
Parse(Error),
}Expand description
A failure while reading the compilation database.
Variants§
TooLarge
The file exceeds the configured input-size ceiling.
Read(Error)
The file could not be read.
Parse(Error)
The file was not valid JSON in the expected shape.
Trait Implementations§
Source§impl Debug for CompileCommandsError
impl Debug for CompileCommandsError
Source§impl Display for CompileCommandsError
impl Display for CompileCommandsError
Source§impl Error for CompileCommandsError
impl Error for CompileCommandsError
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 CompileCommandsError
impl !UnwindSafe for CompileCommandsError
impl Freeze for CompileCommandsError
impl Send for CompileCommandsError
impl Sync for CompileCommandsError
impl Unpin for CompileCommandsError
impl UnsafeUnpin for CompileCommandsError
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