Struct udp_socket::UdpSocket[][src]

pub struct UdpSocket { /* fields omitted */ }

Implementations

impl UdpSocket[src]

pub fn capabilities() -> Result<UdpCapabilities>[src]

pub fn bind(addr: SocketAddr) -> Result<Self>[src]

pub fn socket_type(&self) -> SocketType[src]

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

pub fn ttl(&self) -> Result<u8>[src]

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

pub fn poll_send(
    &self,
    cx: &mut Context<'_>,
    transmits: &[Transmit]
) -> Poll<Result<usize>>
[src]

pub fn poll_recv(
    &self,
    cx: &mut Context<'_>,
    buffers: &mut [IoSliceMut<'_>],
    meta: &mut [RecvMeta]
) -> Poll<Result<usize>>
[src]

pub async fn send(&self, transmits: &[Transmit]) -> Result<usize>[src]

pub async fn recv(
    &self,
    buffers: &mut [IoSliceMut<'_>],
    meta: &mut [RecvMeta]
) -> Result<usize>
[src]

Trait Implementations

impl Debug for UdpSocket[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.