Trait rudp::UdpLike [−][src]
pub trait UdpLike: Sized { fn send(&mut self, buf: &[u8]) -> Result<usize>; fn recv(&mut self, buf: &mut [u8]) -> Result<usize>; }
Object that allows sending and receiving of datagram-like byte payloads
using a io::Write
-like API (buffers and such).
We suggest implementing this trivial trait for, and using mio::net::UdpSocket
.
Required Methods
Implementations on Foreign Types
impl UdpLike for UdpSocket
[src]
impl UdpLike for UdpSocket