[][src]Struct gen_lsp_server::RawNotification

pub struct RawNotification {
    pub method: String,
    pub params: Value,
}

Fields

method: Stringparams: Value

Methods

impl RawNotification[src]

pub fn new<N>(params: &N::Params) -> RawNotification where
    N: Notification,
    N::Params: Serialize
[src]

pub fn is<N>(&self) -> bool where
    N: Notification
[src]

pub fn cast<N>(self) -> Result<N::Params, RawNotification> where
    N: Notification,
    N::Params: DeserializeOwned
[src]

Trait Implementations

impl From<RawNotification> for RawMessage[src]

impl Clone for RawNotification[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for RawNotification[src]

impl Serialize for RawNotification[src]

impl<'de> Deserialize<'de> for RawNotification[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]