pub enum LogSource {
Telemetry,
Client,
Stderr,
LspMessage,
LspShowMessage,
Trace,
}Expand description
Where a log record originated.
Variants§
Telemetry
LSP telemetry/event notification (spec §3.16). Routed
here in 4.4.a so plugin subscribers can filter on
source == "telemetry" rather than parsing free-form
log-message text. Payload still goes through the
shared LspLogPushed.message String – plugin code
that needs structured JSON can parse the suffix.
Client
Lattice-side (handshake start / done, supervisor restart, shutdown sequence, decode failures, capability gating).
Stderr
One line from the server’s stderr stream.
LspMessage
window/logMessage notification.
LspShowMessage
window/showMessage notification (also surfaced to
the editor’s notification slot).
Trace
JSON-RPC wire trace – one inbound or outbound message.
Implementations§
Trait Implementations§
impl Copy for LogSource
impl Eq for LogSource
impl StructuralPartialEq for LogSource
Auto Trait Implementations§
impl Freeze for LogSource
impl RefUnwindSafe for LogSource
impl Send for LogSource
impl Sync for LogSource
impl Unpin for LogSource
impl UnsafeUnpin for LogSource
impl UnwindSafe for LogSource
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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