[][src]Struct mio::udp::UdpSocket

pub struct UdpSocket { /* fields omitted */ }

Methods

impl UdpSocket[src]

pub fn v4() -> Result<UdpSocket>[src]

Returns a new, unbound, non-blocking, IPv4 UDP socket

pub fn v6() -> Result<UdpSocket>[src]

Returns a new, unbound, non-blocking, IPv6 UDP socket

pub fn bound(addr: &SocketAddr) -> Result<UdpSocket>[src]

pub fn bind(&self, addr: &SocketAddr) -> Result<()>[src]

pub fn local_addr(&self) -> Result<SocketAddr>[src]

pub fn try_clone(&self) -> Result<UdpSocket>[src]

pub fn send_to(&self, buf: &[u8], target: &SocketAddr) -> Result<Option<usize>>[src]

pub fn recv_from(&self, buf: &mut [u8]) -> Result<Option<(usize, SocketAddr)>>[src]

pub fn set_broadcast(&self, on: bool) -> Result<()>[src]

pub fn set_multicast_loop(&self, on: bool) -> Result<()>[src]

pub fn join_multicast(&self, multi: &IpAddr) -> Result<()>[src]

pub fn leave_multicast(&self, multi: &IpAddr) -> Result<()>[src]

pub fn set_multicast_time_to_live(&self, ttl: i32) -> Result<()>[src]

Trait Implementations

impl Evented for UdpSocket[src]

impl Debug for UdpSocket[src]

impl AsRawFd for UdpSocket[src]

impl FromRawFd for UdpSocket[src]

Auto Trait Implementations

impl Send for UdpSocket

impl !Sync for UdpSocket

impl Unpin for UdpSocket

impl UnwindSafe for UdpSocket

impl !RefUnwindSafe for UdpSocket

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]