Enum lsp2::TraceValue
pub enum TraceValue {
Off,
Messages,
Verbose,
}
Expand description
A TraceValue represents the level of verbosity with which the server systematically
reports its execution trace using LogTrace
notifications.
The initial trace value is set by the client at initialization and can be modified
later using the SetTrace
notification.
Variants§
Off
The server should not send any $/logTrace
notification
Messages
The server should not add the ‘verbose’ field in the LogTraceParams
Verbose
Trait Implementations§
§impl Clone for TraceValue
impl Clone for TraceValue
§fn clone(&self) -> TraceValue
fn clone(&self) -> TraceValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TraceValue
impl Debug for TraceValue
§impl Default for TraceValue
impl Default for TraceValue
§fn default() -> TraceValue
fn default() -> TraceValue
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for TraceValue
impl<'de> Deserialize<'de> for TraceValue
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TraceValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TraceValue, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<TraceValue> for TraceValue
impl PartialEq<TraceValue> for TraceValue
§fn eq(&self, other: &TraceValue) -> bool
fn eq(&self, other: &TraceValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for TraceValue
impl Serialize for TraceValue
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TraceValue
impl Eq for TraceValue
impl StructuralEq for TraceValue
impl StructuralPartialEq for TraceValue
Auto Trait Implementations§
impl RefUnwindSafe for TraceValue
impl Send for TraceValue
impl Sync for TraceValue
impl Unpin for TraceValue
impl UnwindSafe for TraceValue
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.