pub enum ClangTaskError {
GetToolError(GetToolError),
FindToolError(&'static str),
ParseJsonError(Error),
JoinError(JoinError),
ClangCaptureError(ClangCaptureError),
}Expand description
Errors related to orchestrating clang tools in parallel.
Variants§
GetToolError(GetToolError)
Error to propagate failures from downloading/installing/finding a clang tool.
FindToolError(&'static str)
Error when the tool manager cannot find a suitable version of a clang tool.
ParseJsonError(Error)
Error when failing to parse the compilation database.
This can occur regardless of invoking clang-tidy.
JoinError(JoinError)
Error to propagate task joining failures (from the tokio runtime).
ClangCaptureError(ClangCaptureError)
Error to propagate failures from capturing clang tools’ output.
Trait Implementations§
Source§impl Debug for ClangTaskError
impl Debug for ClangTaskError
Source§impl Display for ClangTaskError
impl Display for ClangTaskError
Source§impl Error for ClangTaskError
impl Error for ClangTaskError
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<ClangCaptureError> for ClangTaskError
impl From<ClangCaptureError> for ClangTaskError
Source§fn from(source: ClangCaptureError) -> Self
fn from(source: ClangCaptureError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ClangTaskError
impl From<Error> for ClangTaskError
Source§impl From<GetToolError> for ClangTaskError
impl From<GetToolError> for ClangTaskError
Source§fn from(source: GetToolError) -> Self
fn from(source: GetToolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClangTaskError
impl !UnwindSafe for ClangTaskError
impl Freeze for ClangTaskError
impl Send for ClangTaskError
impl Sync for ClangTaskError
impl Unpin for ClangTaskError
impl UnsafeUnpin for ClangTaskError
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