[−][src]Enum lavish::Message
Variants
Request
Fields of Request
Response
Fields of Response
Notification
Fields of Notification
params: NP
phantom: 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]
P: Atom<M>,
NP: Atom<M>,
R: Atom<M>,
M: Mapping,
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]
P: Atom<M>,
NP: Atom<M>,
R: Atom<M>,
M: Mapping,
fn write<W: Write>(&self, mapping: &M, wr: &mut W) -> Result<(), Error>
[src]
fn read<Rd: Read>(rd: &mut Reader<Rd>) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
fn subread<R: Read, T>(rd: &mut Reader<R>) -> Result<T, Error> where
Self: Sized,
T: Factual<M>,
[src]
Self: Sized,
T: Factual<M>,
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]
P: Atom<M>,
NP: Atom<M>,
R: Atom<M>,
M: Mapping,
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,
NP: Sync,
P: Sync,
R: Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,