pub enum ErrorCode {
Show 27 variants
InvalidPlan,
PlanExpired,
PlanConsumed,
CursorExpired,
InvalidCursor,
RetentionLimit,
OutputLimit,
Cancelled,
Incomplete,
BadRequest,
BadQuery,
BadPattern,
BadSelection,
BadTemplate,
NoSuchSymbol,
AmbiguousSymbol,
NoLanguage,
NoLayout,
NoSuchPosition,
Exists,
NotFound,
Unmovable,
Conflict,
Stale,
NoHistory,
Io,
RecoveryFailed,
}Expand description
The kind of failure, stable across releases; the message is not.
Variants§
InvalidPlan
PlanExpired
PlanConsumed
CursorExpired
InvalidCursor
RetentionLimit
OutputLimit
Cancelled
The caller cancelled the operation.
Incomplete
Resolution stopped before a complete answer was available.
BadRequest
The request could not be read: not JSON, or not a known command.
BadQuery
A query with none of pattern, kind, symbol, name.
BadPattern
A pattern or node kind the language’s grammar rejects.
BadSelection
A selection naming rows or ids the search did not find.
BadTemplate
A template naming a capture the match does not have.
NoSuchSymbol
No declaration by that name (and kind).
AmbiguousSymbol
Several declarations share the name; declared_in picks one.
NoLanguage
No registered language claims the file.
NoLayout
The language has no layout: paths cannot be followed, files not moved.
NoSuchPosition
A position past the end of the file.
Exists
The destination already exists.
NotFound
A file, or the file declaring a name, could not be found.
Unmovable
The layout refuses the move: a root, across packages, into itself.
Conflict
Two edits of one plan overlap, or a file is moved twice.
Stale
A file changed since the plan (or the apply to undo) was made.
NoHistory
Nothing to undo, or a history file that cannot be read.
Io
Reading or writing the tree failed.
RecoveryFailed
Recovery could not restore or verify every attempted effect.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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