Trait scaproust::Device
[−]
[src]
pub trait Device: Send { fn run(self: Box<Self>) -> Result<()>; }
A device to forward messages between sockets, working like a message broker. It can be used to build complex network topologies.
Required Methods
fn run(self: Box<Self>) -> Result<()>
This function loops until it hits an error.
To break the loop and make the run
function exit,
drop the session that created the device.