#[non_exhaustive]pub enum StartupFailure {
Spawn(Arc<Error>),
InitTaskPanicked,
RefusedUntrustedWorkspace(UntrustedRefusal),
}Expand description
Why a configured LSP server never registered during startup.
§Examples
use mcpls_core::error::StartupFailure;
assert!(StartupFailure::InitTaskPanicked.to_string().contains("panicked"));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Spawn(Arc<Error>)
Spawning or initializing the server failed.
InitTaskPanicked
Starting this server, or the background initialization task as a whole, panicked before the server registered.
RefusedUntrustedWorkspace(UntrustedRefusal)
The workspace is untrusted and this server was not started.
Trait Implementations§
Source§impl Clone for StartupFailure
impl Clone for StartupFailure
Source§impl Debug for StartupFailure
impl Debug for StartupFailure
Auto Trait Implementations§
impl !RefUnwindSafe for StartupFailure
impl !UnwindSafe for StartupFailure
impl Freeze for StartupFailure
impl Send for StartupFailure
impl Sync for StartupFailure
impl Unpin for StartupFailure
impl UnsafeUnpin for StartupFailure
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