pub enum Request {
Show 20 variants
Ping,
Status,
Summary,
Reindex {
force: bool,
},
Search(SearchQuery),
Symbols(SymbolQuery),
Refs {
name: String,
limit: usize,
offset: usize,
},
RefsResolved {
name: String,
limit: usize,
offset: usize,
},
Callers {
name: String,
limit: usize,
offset: usize,
},
Callees {
name: String,
limit: usize,
offset: usize,
},
BlastRadius {
name: String,
depth: u32,
limit: usize,
},
Definition {
file: String,
line: u32,
col: u32,
},
ReferencesAt {
file: String,
line: u32,
col: u32,
},
Structural {
pattern: String,
lang: String,
limit: usize,
offset: usize,
},
ContextPack {
task: String,
budget: u64,
},
Blame {
file: String,
line: u32,
},
History {
name: String,
limit: usize,
},
ChangedSince {
rev: String,
},
Outline {
file: String,
},
Snippet {
file: String,
start: u32,
end: u32,
context: u32,
},
}Expand description
A request from a client to the daemon.
Variants§
Ping
Status
Summary
Reindex
Search(SearchQuery)
Symbols(SymbolQuery)
Refs
RefsResolved
Resolved references (definitions + call sites + imports) from the structural reference index.
Callers
Call sites that target a symbol (who calls it).
Callees
Call sites inside a symbol’s body (what it calls).
BlastRadius
Symbols transitively affected by changing a symbol (reverse call graph).
Definition
Typed go-to-definition for the identifier at a source position.
ReferencesAt
Resolved references for the identifier at a source position.
Structural
Structural (AST) search by tree-sitter query or meta-variable pattern.
ContextPack
Build a token-budgeted context pack for a task.
Blame
Git blame for a single line.
History
Commit history of a symbol’s definition.
ChangedSince
Files (with symbols) changed since a revision.
Outline
Snippet
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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