pub enum Answer {
Show 38 variants
DiscardPlan(PlanReview),
ApplyPlan(PlanReceipt),
ValidatePlan(ValidationReport),
InspectPlan(PlanReviewReply),
PrepareRename(PlanReviewReply),
PrepareRewrite(PlanReviewReply),
PrepareMove(PlanReviewReply),
PrepareMoveSymbol(PlanReviewReply),
SymbolMoveCandidates(SymbolMoveCandidates),
ReviewPlan(PlanReviewPage),
SearchPage(SearchPage),
ContextPage(ContextPage),
Continue(PageReply),
Expand(Expansion),
Discover(Discovery),
Context(ContextReply),
Navigate(NavigationReply),
Relationships(Relationships),
Resolve(ResolutionReply),
Search(Search),
Outline(Outline),
References(References),
Where(Locations),
Deps(Deps),
Explain(Explanation),
Surface(Surface),
Impact(Impact),
Dead(Dead),
Imports(ImportsReport),
WorkspaceFiles(WorkspaceFiles),
File(File),
Rewrite(Rewrite),
Rename(Rename),
Move(Move),
MoveSymbol(MoveSymbol),
Batch(Batch),
History(History),
Undo(Undo),
}Expand description
The answer to a Request: the result type of the command asked. On
the wire it is that type’s shape alone — a client knows what it asked —
so it serialises without a tag and is read back by the command’s type.
Variants§
DiscardPlan(PlanReview)
ApplyPlan(PlanReceipt)
ValidatePlan(ValidationReport)
InspectPlan(PlanReviewReply)
PrepareRename(PlanReviewReply)
PrepareRewrite(PlanReviewReply)
PrepareMove(PlanReviewReply)
PrepareMoveSymbol(PlanReviewReply)
SymbolMoveCandidates(SymbolMoveCandidates)
ReviewPlan(PlanReviewPage)
SearchPage(SearchPage)
ContextPage(ContextPage)
Continue(PageReply)
Expand(Expansion)
Discover(Discovery)
Context(ContextReply)
Relationships(Relationships)
Resolve(ResolutionReply)
Search(Search)
Outline(Outline)
References(References)
Where(Locations)
Deps(Deps)
Explain(Explanation)
Surface(Surface)
Impact(Impact)
Dead(Dead)
Imports(ImportsReport)
WorkspaceFiles(WorkspaceFiles)
File(File)
Rewrite(Rewrite)
Rename(Rename)
Move(Move)
MoveSymbol(MoveSymbol)
Batch(Batch)
History(History)
Undo(Undo)
Implementations§
Trait Implementations§
Source§impl From<MutationAnswer> for Answer
impl From<MutationAnswer> for Answer
Source§fn from(result: MutationAnswer) -> Self
fn from(result: MutationAnswer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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