pub enum LspMessage {
Request {
id: usize,
method: String,
params: Value,
},
Response {
id: usize,
result: Value,
},
Notification {
method: String,
params: Value,
},
}
Variants§
Implementations§
source§impl LspMessage
impl LspMessage
pub fn raw_message(&self) -> String
Trait Implementations§
source§impl Debug for LspMessage
impl Debug for LspMessage
source§impl<'de> Deserialize<'de> for LspMessage
impl<'de> Deserialize<'de> for LspMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Handler<LspMessage> for Responder
impl Handler<LspMessage> for Responder
source§impl Handler<LspMessage> for Sender
impl Handler<LspMessage> for Sender
source§impl Message for LspMessage
impl Message for LspMessage
Auto Trait Implementations§
impl Freeze for LspMessage
impl RefUnwindSafe for LspMessage
impl Send for LspMessage
impl Sync for LspMessage
impl Unpin for LspMessage
impl UnwindSafe for LspMessage
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> 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