pub enum EngineError {
Show 50 variants
SymbolMoveSelection {
candidates: Vec<SymbolMoveCandidate>,
},
UnsupportedSymbolMove {
declaration: Box<Match>,
reason: SymbolMoveUnsupported,
},
InvalidSymbolMoveEvidence,
ValidationUnavailable,
InvalidValidation,
InvalidPlan,
InvalidMovePath {
path: RelPath,
},
PlanExpired,
PlanConsumed,
StalePlan,
PlanRetentionLimit,
InvalidSearchScope,
ReadCancelled,
ReusedCancellation,
MutationCancellation,
StaleQuery,
CursorExpired,
InvalidCursor,
RetentionLimit,
PageOutputLimit {
max_bytes: usize,
required_bytes: usize,
anchor: Option<SourceAnchor>,
},
InvalidBudget,
MutationBudget,
OutputLimit {
max_bytes: usize,
required_bytes: usize,
},
NavigationCancelled,
StaleSemantic,
InvalidSemantic,
StaleSource {
path: RelPath,
},
InvalidAnchor {
path: RelPath,
},
NavigationLimit,
NavigationSelection,
ExecutionKind {
expected: ExecutionKind,
actual: ExecutionKind,
},
Open {
path: RelPath,
source: Error,
},
Vfs(VfsError),
Query(QueryError),
Search {
path: RelPath,
source: SearchError,
},
Selection(SelectionError),
Template {
path: RelPath,
line: u32,
source: TemplateError,
},
Conflict(EditConflict),
Extraction(ExtractionError),
Regroup(RegroupError),
AmbiguousSymbol {
name: String,
declarations: Vec<DeclarationSite>,
},
NoSuchSymbol {
name: String,
kind: Option<SymbolKind>,
},
Exists(RelPath),
NoLanguage(RelPath),
NoLayout(LanguageId),
NoSuchPosition {
path: RelPath,
position: Position,
},
Resolve(ResolveError),
Apply(ApplyError),
History(HistoryError),
Recovery(RecoveryError),
}Variants§
SymbolMoveSelection
Fields
§
candidates: Vec<SymbolMoveCandidate>UnsupportedSymbolMove
InvalidSymbolMoveEvidence
InvalidValidation
InvalidPlan
InvalidMovePath
PlanExpired
PlanConsumed
StalePlan
PlanRetentionLimit
InvalidSearchScope
ReadCancelled
ReusedCancellation
MutationCancellation
StaleQuery
CursorExpired
InvalidCursor
RetentionLimit
PageOutputLimit
InvalidBudget
MutationBudget
OutputLimit
StaleSemantic
InvalidSemantic
StaleSource
InvalidAnchor
ExecutionKind
Open
Vfs(VfsError)
Query(QueryError)
Search
Selection(SelectionError)
Template
Conflict(EditConflict)
Extraction(ExtractionError)
Regroup(RegroupError)
AmbiguousSymbol
NoSuchSymbol
Exists(RelPath)
NoLanguage(RelPath)
NoLayout(LanguageId)
NoSuchPosition
Resolve(ResolveError)
Apply(ApplyError)
History(HistoryError)
Recovery(RecoveryError)
Implementations§
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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<&EngineError> for Failure
impl From<&EngineError> for Failure
Source§fn from(error: &EngineError) -> Self
fn from(error: &EngineError) -> Self
Converts to this type from the input type.
Source§impl From<ApplyError> for EngineError
impl From<ApplyError> for EngineError
Source§fn from(source: ApplyError) -> Self
fn from(source: ApplyError) -> Self
Converts to this type from the input type.
Source§impl From<EditConflict> for EngineError
impl From<EditConflict> for EngineError
Source§fn from(source: EditConflict) -> Self
fn from(source: EditConflict) -> Self
Converts to this type from the input type.
Source§impl From<ExtractionError> for EngineError
impl From<ExtractionError> for EngineError
Source§fn from(source: ExtractionError) -> Self
fn from(source: ExtractionError) -> Self
Converts to this type from the input type.
Source§impl From<HistoryError> for EngineError
impl From<HistoryError> for EngineError
Source§fn from(source: HistoryError) -> Self
fn from(source: HistoryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for EngineError
impl From<QueryError> for EngineError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<RecoveryError> for EngineError
impl From<RecoveryError> for EngineError
Source§fn from(source: RecoveryError) -> Self
fn from(source: RecoveryError) -> Self
Converts to this type from the input type.
Source§impl From<RegroupError> for EngineError
impl From<RegroupError> for EngineError
Source§fn from(source: RegroupError) -> Self
fn from(source: RegroupError) -> Self
Converts to this type from the input type.
Source§impl From<ResolveError> for EngineError
impl From<ResolveError> for EngineError
Source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Source§impl From<SelectionError> for EngineError
impl From<SelectionError> for EngineError
Source§fn from(source: SelectionError) -> Self
fn from(source: SelectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineError
impl !UnwindSafe for EngineError
impl Freeze for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more