Dusk Unix Domain Sockets
Minimalistic boilerplate for [std::os::unix::net::UnixListener
] bindings.
Complies with the log facade.
Installation
Add this to your Cargo.toml
:
[]
= "0.1"
Example
use ;
use *;
// This structure will handle the incoming sockets
// Optional implementation of default to facilitate the clone
// Clone implementation is mandatory, for this instance will be shared amongst the worker threads
// with provided ownership.
// Allow the UDS provider to send the socket to the structure before the poll
// Standard future implementation.
//
// Will read a byte from the socket, multiply it by 2, and write the result.
//
// If the provided byte is 0, will quit