[][src]Enum lavish::Message

pub enum Message<M, P, NP, R> where
    P: Atom<M>,
    NP: Atom<M>,
    R: Atom<M>,
    M: Mapping
{ Request { id: u32, params: P, phantom: PhantomData<M>, }, Response { id: u32, error: Option<String>, results: Option<R>, phantom: PhantomData<M>, }, Notification { params: NP, phantom: PhantomData<M>, }, }

Variants

Request

Fields of Request

id: u32params: Pphantom: PhantomData<M>
Response

Fields of Response

id: u32error: Option<String>results: Option<R>phantom: PhantomData<M>
Notification

Fields of Notification

params: NPphantom: PhantomData<M>

Methods

impl<M, P, NP, R> Message<M, P, NP, R> where
    P: Atom<M>,
    NP: Atom<M>,
    R: Atom<M>,
    M: Mapping
[src]

pub fn request(id: u32, params: P) -> Self[src]

pub fn notification(params: NP) -> Self[src]

pub fn response(id: u32, error: Option<String>, results: Option<R>) -> Self[src]

Trait Implementations

impl<M, P, NP, R> Factual<M> for Message<M, P, NP, R> where
    P: Atom<M>,
    NP: Atom<M>,
    R: Atom<M>,
    M: Mapping
[src]

fn subread<R: Read, T>(rd: &mut Reader<R>) -> Result<T, Error> where
    Self: Sized,
    T: Factual<M>, 
[src]

impl<M: Debug, P: Debug, NP: Debug, R: Debug> Debug for Message<M, P, NP, R> where
    P: Atom<M>,
    NP: Atom<M>,
    R: Atom<M>,
    M: Mapping
[src]

Auto Trait Implementations

impl<M, P, NP, R> Send for Message<M, P, NP, R>

impl<M, P, NP, R> Sync for Message<M, P, NP, R> where
    NP: Sync,
    P: Sync,
    R: Sync

Blanket Implementations

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

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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