Trait netapp::message::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