pub enum BeginRunError {
Timeout(String),
Failed(String),
}Expand description
Why a provider could not do its work — preparing a run in TypeProvider::begin_run, or
answering a question afterwards, which TypeProvider::failure reports in the same shape.
The two arms are the engine’s two exits: Timeout is RunError::AnalysisTimeout, which
names timeouts.analysis, and Failed is RunError::Provider, which names the toolchain.
Telling them apart matters because the remedies are different, and printing the wrong one
is advice that cannot work.
Variants§
Timeout(String)
The provider’s work outlived the analysis budget.
Failed(String)
The provider could not do its work at all.
Trait Implementations§
Source§impl Clone for BeginRunError
impl Clone for BeginRunError
Source§fn clone(&self) -> BeginRunError
fn clone(&self) -> BeginRunError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeginRunError
impl Debug for BeginRunError
impl Eq for BeginRunError
Source§impl PartialEq for BeginRunError
impl PartialEq for BeginRunError
impl StructuralPartialEq for BeginRunError
Auto Trait Implementations§
impl Freeze for BeginRunError
impl RefUnwindSafe for BeginRunError
impl Send for BeginRunError
impl Sync for BeginRunError
impl Unpin for BeginRunError
impl UnsafeUnpin for BeginRunError
impl UnwindSafe for BeginRunError
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