Trait IntoReq

Source
pub trait IntoReq<M: Message> {
    // Required methods
    fn into_req(self) -> Result<Req<M>, Error>;
    fn into_req_local(self) -> Req<M>;
}
Expand description

IntoReq<M> represents any object that can be transformed into Req<M>

Required Methods§

Source

fn into_req(self) -> Result<Req<M>, Error>

Transform the object into a Req<M>, serializing the message M to be sent to remote nodes

Source

fn into_req_local(self) -> Req<M>

Transform the object into a Req<M>, skipping the serialization of message M, in the case we are not sending this RPC message to a remote node

Implementors§

Source§

impl<M: Message> IntoReq<M> for Req<M>

Source§

impl<M: Message> IntoReq<M> for M