ServerCapabilities

Struct ServerCapabilities 

Source
pub struct ServerCapabilities { /* private fields */ }
Expand description

Server Capabilities

Implementations§

Source§

impl ServerCapabilities

Source

pub fn set_compile_provider( &mut self, compile_provider: Option<CompileProvider>, )

Set the bsp server capabilities’s compile provider.

Source

pub fn compile_provider(&self) -> Option<&CompileProvider>

Get a reference to the bsp server capabilities’s compile provider.

Source

pub fn set_test_provider(&mut self, test_provider: Option<TestProvider>)

Set the bsp server capabilities’s test provider.

Source

pub fn test_provider(&self) -> Option<&TestProvider>

Get a reference to the bsp server capabilities’s test provider.

Source

pub fn set_run_provider(&mut self, run_provider: Option<RunProvider>)

Set the bsp server capabilities’s run provider.

Source

pub fn run_provider(&self) -> Option<&RunProvider>

Get a reference to the bsp server capabilities’s run provider.

Source

pub fn set_debug_provider(&mut self, debug_provider: Option<DebugProvider>)

Set the bsp server capabilities’s debug provider.

Source

pub fn debug_provider(&self) -> Option<&DebugProvider>

Get a reference to the bsp server capabilities’s debug provider.

Source

pub fn set_inverse_sources_provider( &mut self, inverse_sources_provider: Option<bool>, )

Set the bsp server capabilities’s inverse sources provider.

Source

pub fn inverse_sources_provider(&self) -> Option<bool>

Get the bsp server capabilities’s inverse sources provider.

Source

pub fn set_dependency_sources_provider( &mut self, dependency_sources_provider: Option<bool>, )

Set the bsp server capabilities’s dependency sources provider.

Source

pub fn dependency_sources_provider(&self) -> Option<bool>

Get the bsp server capabilities’s dependency sources provider.

Source

pub fn set_dependency_modules_provider( &mut self, dependency_modules_provider: Option<bool>, )

Set the bsp server capabilities’s dependency modules provider.

Source

pub fn dependency_modules_provider(&self) -> Option<bool>

Get the bsp server capabilities’s dependency modules provider.

Source

pub fn set_resources_provider(&mut self, resources_provider: Option<bool>)

Set the bsp server capabilities’s resources provider.

Source

pub fn resources_provider(&self) -> Option<bool>

Get the bsp server capabilities’s resources provider.

Source

pub fn set_can_reload(&mut self, can_reload: Option<bool>)

Set the bsp server capabilities’s can reload.

Source

pub fn can_reload(&self) -> Option<bool>

Get the bsp server capabilities’s can reload.

Source

pub fn set_build_target_changed_provider( &mut self, build_target_changed_provider: Option<bool>, )

Set the bsp server capabilities’s build target changed provider.

Source

pub fn build_target_changed_provider(&self) -> Option<bool>

Get the bsp server capabilities’s build target changed provider.

Trait Implementations§

Source§

impl Debug for ServerCapabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ServerCapabilities

Source§

fn default() -> ServerCapabilities

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ServerCapabilities

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ServerCapabilities

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,