Struct p2p::NatMsg [] [src]

pub struct NatMsg(_);

A message that can be sent to the event loop to perform an action.

This can be used to send actions from a thread outside the event loop too if sent via mio::channel::Sender.

Methods

impl NatMsg
[src]

Construct a new message indicating the action via a function/functor.

Execute the message (and thus the action).