pub struct MiscApi { /* private fields */ }Expand description
Misc API client.
Implementations§
Source§impl MiscApi
impl MiscApi
Sourcepub fn new(http: HttpClient) -> Self
pub fn new(http: HttpClient) -> Self
Create a new Misc API client.
Sourcepub async fn lsp(&self) -> Result<Vec<LspServerStatus>>
pub async fn lsp(&self) -> Result<Vec<LspServerStatus>>
Get LSP server status for all configured LSP servers.
§Errors
Returns an error if the request fails.
Sourcepub async fn formatter(&self) -> Result<Vec<FormatterInfo>>
pub async fn formatter(&self) -> Result<Vec<FormatterInfo>>
Sourcepub async fn health(&self) -> Result<HealthInfo>
pub async fn health(&self) -> Result<HealthInfo>
Sourcepub async fn global_dispose(&self) -> Result<()>
pub async fn global_dispose(&self) -> Result<()>
Sourcepub async fn doc(&self) -> Result<OpenApiDoc>
pub async fn doc(&self) -> Result<OpenApiDoc>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MiscApi
impl !RefUnwindSafe for MiscApi
impl Send for MiscApi
impl Sync for MiscApi
impl Unpin for MiscApi
impl !UnwindSafe for MiscApi
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