pub struct LspModeGuard { /* private fields */ }Expand description
Guard for lsp-mode. Holds the event-bus handle + buffer id;
Drop publishes LspBufferDetached so subscribers (the LSP
supervisor, the diagnostic clearer) tear down per-buffer
state symmetrically with the LspBufferAttached published
from on_activate.
Trait Implementations§
Source§impl Drop for LspModeGuard
impl Drop for LspModeGuard
Auto Trait Implementations§
impl Freeze for LspModeGuard
impl RefUnwindSafe for LspModeGuard
impl Send for LspModeGuard
impl Sync for LspModeGuard
impl Unpin for LspModeGuard
impl UnsafeUnpin for LspModeGuard
impl UnwindSafe for LspModeGuard
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more