[][src]Struct erbium::net::udp::RecvMsg

pub struct RecvMsg {
    pub buffer: Vec<u8>,
    pub address: Option<SocketAddr>,
    // some fields omitted
}

Fields

buffer: Vec<u8>address: Option<SocketAddr>

Implementations

impl RecvMsg[src]

pub fn local_addr(&self) -> Option<IpAddr>[src]

Returns the local address of the packet.

This is primarily used by UDP sockets to tell you which address a packet arrived on when the UDP socket is bound to INADDR_ANY or IN6ADDR_ANY.

pub fn local_intf(&self) -> Option<i32>[src]

Trait Implementations

impl Debug for RecvMsg[src]

Auto Trait Implementations

impl RefUnwindSafe for RecvMsg

impl Send for RecvMsg

impl Sync for RecvMsg

impl Unpin for RecvMsg

impl UnwindSafe for RecvMsg

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,