Struct lsp_server::Notification
source · Fields§
§method: String§params: ValueImplementations§
source§impl Notification
impl Notification
pub fn new(method: String, params: impl Serialize) -> Notification
pub fn extract<P: DeserializeOwned>(
self,
method: &str
) -> Result<P, ExtractError<Notification>>
Trait Implementations§
source§impl Clone for Notification
impl Clone for Notification
source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 moresource§impl Debug for Notification
impl Debug for Notification
source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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 From<Notification> for Message
impl From<Notification> for Message
source§fn from(notification: Notification) -> Message
fn from(notification: Notification) -> Message
Converts to this type from the input type.