pub enum CompletionRequest {}Expand description
Request to request completion at a given text document position. The request’s
parameter is of type [TextDocumentPosition] the response
is of type CompletionItem[] or CompletionList
or a Thenable that resolves to such.
The request can delay the computation of the detail
and documentation properties to the completionItem/resolve
request. However, properties that are needed for the initial sorting and filtering, like sortText,
filterText, insertText, and textEdit, must not be changed during resolve.
Trait Implementations§
Source§impl Debug for CompletionRequest
impl Debug for CompletionRequest
Source§impl Request for CompletionRequest
impl Request for CompletionRequest
const METHOD: LspRequestMethod<'static> = LspRequestMethod::TextDocumentCompletion
const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer
type Params = CompletionParams
type Result = Option<CompletionResponse>
Auto Trait Implementations§
impl Freeze for CompletionRequest
impl RefUnwindSafe for CompletionRequest
impl Send for CompletionRequest
impl Sync for CompletionRequest
impl Unpin for CompletionRequest
impl UnsafeUnpin for CompletionRequest
impl UnwindSafe for CompletionRequest
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