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§
sourcefn into_req(self) -> Result<Req<M>, Error>
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
sourcefn into_req_local(self) -> Req<M>
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