Enum bsp_server::Request
source · [−]pub enum Request {
Show 15 variants
InitializeBuild(RequestId, InitializeBuild),
Shutdown(RequestId),
WorkspaceBuildTargets(RequestId),
WorkspaceReload(RequestId),
BuildTargetDependencyModules(RequestId, BuildTargetDependencyModules),
DebugSessionStart(RequestId, DebugSessionStart),
BuildTargetSources(RequestId, BuildTargetSources),
TextDocumentInverseSources(RequestId, TextDocumentInverseSources),
BuildTargetDependencySources(RequestId, BuildTargetDependencySources),
BuildTargetResources(RequestId, BuildTargetResources),
BuildTargetRun(RequestId, BuildTargetRun),
BuildTargetCompile(RequestId, BuildTargetCompile),
BuildTargetTest(RequestId, BuildTargetTest),
BuildTargetCleanCache(RequestId, BuildTargetCleanCache),
Custom(RequestId, &'static str, Value),
}Variants
InitializeBuild(RequestId, InitializeBuild)
Client->Server: Initialize Server
Shutdown(RequestId)
Client->Server: Shutdown server
WorkspaceBuildTargets(RequestId)
Client->Server: Get a list of all available build targets in the workspace.
WorkspaceReload(RequestId)
Client->Server: Reload the build configuration.
BuildTargetDependencyModules(RequestId, BuildTargetDependencyModules)
Client->Server: Get libraries of build target dependencies that are external to the workspace including meta information about library and their sources. It’s an extended version of buildTarget/sources
DebugSessionStart(RequestId, DebugSessionStart)
Client->Server: Debug build target(s)
BuildTargetSources(RequestId, BuildTargetSources)
Client->Server: Get text documents and directories that belong to a build target.
TextDocumentInverseSources(RequestId, TextDocumentInverseSources)
Client->Server: Get build targets containing a text document.
BuildTargetDependencySources(RequestId, BuildTargetDependencySources)
Client->Server: Get sources of build target dependencies that are external to the workspace.
BuildTargetResources(RequestId, BuildTargetResources)
Client->Server: Get list of resources of a given list of build targets.
BuildTargetRun(RequestId, BuildTargetRun)
Client->Server: Run a build target
BuildTargetCompile(RequestId, BuildTargetCompile)
Client->Server: Run a compile target
BuildTargetTest(RequestId, BuildTargetTest)
Client->Server: Run a test target
BuildTargetCleanCache(RequestId, BuildTargetCleanCache)
Client->Server: reset any state associated with a given build target
Custom(RequestId, &'static str, Value)
Any custom message not yet supported in the crate or custom
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
sourcefn 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 RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more