#[non_exhaustive]pub enum BackgroundTask {
McpService,
LspReceiver,
ListenResolution,
PathValidation,
FileOpen,
ServerPlanning,
IdleSessionReaper,
}Expand description
A background task whose failure surfaces as Error::TaskFailed or is
reported by its supervisor.
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.
McpService
The MCP service loop that serves one client connection.
LspReceiver
The task that reads an LSP server’s messages.
ListenResolution
The blocking resolution of subscriptions/listen URIs.
PathValidation
The blocking canonicalization of a client path.
FileOpen
Opening and verifying a file on the blocking pool.
ServerPlanning
Planning which configured servers to start, on the blocking pool.
IdleSessionReaper
The reaper that expires idle HTTP sessions.
Trait Implementations§
Source§impl Clone for BackgroundTask
impl Clone for BackgroundTask
impl Copy for BackgroundTask
Source§impl Debug for BackgroundTask
impl Debug for BackgroundTask
Source§impl Display for BackgroundTask
impl Display for BackgroundTask
impl Eq for BackgroundTask
Source§impl PartialEq for BackgroundTask
impl PartialEq for BackgroundTask
impl StructuralPartialEq for BackgroundTask
Auto Trait Implementations§
impl Freeze for BackgroundTask
impl RefUnwindSafe for BackgroundTask
impl Send for BackgroundTask
impl Sync for BackgroundTask
impl Unpin for BackgroundTask
impl UnsafeUnpin for BackgroundTask
impl UnwindSafe for BackgroundTask
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.