pub trait EasySocket: Write + Read { }Expand description
Types implementing this trait support a simplified socket use.
EasySocket types support sockets with an Open/Close, Read/Write semantics.
As usual in Rust, no close method is needed, as dropping an object should
already close the resources.
EasySockets methods to be used are open, read,
write and flush. Likely, a new method is
needed befor opening the socket, but this depends on the implementation.
§Notes
EasySocket types should implement in their drop method the steps required
to close the acquired resources.