[][src]Struct tokio_uds::RecvDgram

pub struct RecvDgram<T> { /* fields omitted */ }

A future for receiving datagrams from a Unix datagram socket.

An example that uses UDP sockets but is still applicable can be found at https://gist.github.com/dermesser/e331094c2ab28fc7f6ba8a16183fe4d5.

Trait Implementations

impl<T: Debug> Debug for RecvDgram<T>[src]

impl<T> Future for RecvDgram<T> where
    T: AsMut<[u8]>, 
[src]

type Item = (UnixDatagram, T, usize, String)

RecvDgram yields a tuple of the underlying socket, the receive buffer, how many bytes were received, and the address (path) of the peer sending the datagram. If the buffer is too small, the datagram is truncated.

type Error = Error

This future yields io::Error if an error occurred.

Auto Trait Implementations

impl<T> !RefUnwindSafe for RecvDgram<T>

impl<T> Send for RecvDgram<T> where
    T: Send

impl<T> Sync for RecvDgram<T> where
    T: Sync

impl<T> Unpin for RecvDgram<T> where
    T: Unpin

impl<T> !UnwindSafe for RecvDgram<T>

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<F> IntoFuture for F where
    F: Future
[src]

type Future = F

The future that this type can be converted into.

type Item = <F as Future>::Item

The item that the future may resolve with.

type Error = <F as Future>::Error

The error that the future may resolve with.

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.