pub enum Request {
Show 19 variants
Status,
DaemonStop,
Init,
Check {
path: Option<PathBuf>,
errors_only: bool,
},
FindSymbol {
name: String,
path_filter: Option<String>,
src_only: bool,
include_body: bool,
},
FindImpl {
name: String,
},
FindRefs {
name: String,
with_symbol: bool,
},
ListSymbols {
path: PathBuf,
depth: u8,
},
ReadFile {
path: PathBuf,
from: Option<u32>,
to: Option<u32>,
max_lines: Option<u32>,
},
ReadSymbol {
name: String,
signature_only: bool,
max_lines: Option<u32>,
path_filter: Option<String>,
has_body: bool,
},
EditReplace {
symbol: String,
code: String,
},
EditInsertAfter {
symbol: String,
code: String,
},
EditInsertBefore {
symbol: String,
code: String,
},
Hover {
name: String,
},
Format {
path: PathBuf,
},
Rename {
name: String,
new_name: String,
},
Fix {
path: Option<PathBuf>,
},
ServerStatus,
ServerRestart {
language: String,
},
}Variants§
Status
DaemonStop
Init
Check
FindSymbol
Fields
FindImpl
FindRefs
ListSymbols
ReadFile
ReadSymbol
Fields
EditReplace
EditInsertAfter
EditInsertBefore
Hover
Format
Rename
Fix
ServerStatus
Get running LSP server status from daemon
ServerRestart
Restart a language server in the daemon
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
impl StructuralPartialEq for Request
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> 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