pub fn send_dgram<T>(self, buf: T, addr: &SocketAddr) -> SendDgram<T>
        where T: AsRef<[u8]>,
    {
        SendDgram::new(self, buf, *addr)
    }
/// Creates a future that will write the entire contents of the buffer
/// `buf` provided as a datagram to this socket.
///
/// The returned future will return after data has been written to the
/// outbound socket. The future will resolve to the stream as well as the
/// buffer (for reuse if needed).
///
/// Any error which happens during writing will cause both the stream and
/// the buffer to get destroyed. Note that failure to write the entire
/// buffer is considered an error for the purposes of sending a datagram.
///
/// The `buf` parameter here only requires the `AsRef<[u8]>` trait, which
/// should be broadly applicable to accepting data which can be converted
/// to a slice.
Creates a future that will write the entire contents of the buffer
`buf` provided as a datagram to this socket.

The returned future will return after data has been written to the
outbound socket. The future will resolve to the stream as well as the
buffer (for reuse if needed).

Any error which happens during writing will cause both the stream and
the buffer to get destroyed. Note that failure to write the entire
buffer is considered an error for the purposes of sending a datagram.

The `buf` parameter here only requires the `AsRef<[u8]>` trait, which
should be broadly applicable to accepting data which can be converted
to a slice.
Creates a future that will write the entire contents of the buffer ` buf ` provided as a datagram to this socket . The returned future will return after data has been written to the outbound socket . The future will resolve to the stream as well as the buffer ( for reuse if needed ) . Any error which happens during writing will cause both the stream and the buffer to get destroyed . Note that failure to write the entire buffer is considered an error for the purposes of sending a datagram . The ` buf ` parameter here only requires the ` AsRef< [ u8 ] > ` trait which should be broadly applicable to accepting data which can be converted to a slice .
pub fn send_dgram<T>(self, buf: T, addr: &SocketAddr) -> SendDgram<T>
        where T: AsRef<[u8]>,
    {
        SendDgram::new(self, buf, *addr)
    }
pub fn send_dgram < T > ( self , buf : T , addr : & SocketAddr ) -> SendDgram < T > where T : AsRef < [ u8 ] > , { SendDgram :: new ( self , buf , * addr ) }
Creates a future that will write the entire contents of the buffer
`buf` provided as a datagram to this socket.
Creates a future that will write the entire contents of the buffer ` buf ` provided as a datagram to this socket .
self
buf
T
addr
&SocketAddr
self
buf
T
addr
&SocketAddr