Struct kipa_lib::message_handler::PayloadClient [−][src]
pub struct PayloadClient { /* fields omitted */ }
Client that will take a payload, wrap it in a message, and send to another node
Methods
impl PayloadClient
[src]
impl PayloadClient
pub fn new(
message_id: u32,
local_node: Node,
client: Arc<Client>
) -> PayloadClient
[src]
pub fn new(
message_id: u32,
local_node: Node,
client: Arc<Client>
) -> PayloadClient
Create a new PayloadClient
with information needed to create a message
and send it to another node
pub fn send(
&self,
node: &Node,
payload: RequestPayload,
timeout: Duration
) -> ResponseResult<ResponsePayload>
[src]
pub fn send(
&self,
node: &Node,
payload: RequestPayload,
timeout: Duration
) -> ResponseResult<ResponsePayload>
Send a payload to a node
Auto Trait Implementations
impl Send for PayloadClient
impl Send for PayloadClient
impl Sync for PayloadClient
impl Sync for PayloadClient