- Add missing
Error
impl onHostNewError
- Reset peer on connection error in
enet::connected
- Fix a
Duration
underflow panic inenet::connected
- Add missing
enet::connected::Host::now
function
- Add
SocketError
trait - Add
BadParameter
type inHostNewError::BadParameter
- Add
Host::now
to get the current time according to ENet - Add
connected
feature, providing an easier integration with connection based protocols - Allow
ReadWrite
in#![no_std]
environments - Change
Host::set_mtu
andPeer::set_mtu
to take&mut self
instead of&self
- Compatible with ENet 1.3.18
- Refine some trait requirements and derives
- Reduce allocations introduced by Rust port (#1)
- Reduce
enet_malloc
overhead - Adjust
Socket::receive
interface to one which takes a pre-allocated buffer - Add
#![no_std]
support (by disablingstd
feature) - Add
MTU_MAX
constant (an alias ofENET_PROTOCOL_MAXIMUM_MTU
) - Add functions:
Host::mtu
Host::set_mtu
Peer::mtu
Peer::set_mtu
- Remove redundant
ENET_
prefix onconsts
- Initial release