Trait netlink_proto::sys::AsyncSocketExt
source · pub trait AsyncSocketExt: AsyncSocket {
// Provided methods
fn send<'a, 'b>(&'a mut self, buf: &'b [u8]) -> PollSend<'a, 'b, Self> { ... }
fn send_to<'a, 'b>(
&'a mut self,
buf: &'b [u8],
addr: &'b SocketAddr
) -> PollSendTo<'a, 'b, Self> { ... }
fn recv<B, 'a, 'b>(
&'a mut self,
buf: &'b mut B
) -> PollRecv<'a, 'b, Self, B>
where B: BufMut { ... }
fn recv_from<B, 'a, 'b>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'a, 'b, Self, B>
where B: BufMut { ... }
fn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self> { ... }
}
Expand description
Support trait for AsyncSocket
Provides awaitable variants of the poll functions from AsyncSocket
.
Provided Methods§
sourcefn send<'a, 'b>(&'a mut self, buf: &'b [u8]) -> PollSend<'a, 'b, Self>
fn send<'a, 'b>(&'a mut self, buf: &'b [u8]) -> PollSend<'a, 'b, Self>
async fn send(&mut self, buf: &[u8]) -> io::Result<usize>
sourcefn send_to<'a, 'b>(
&'a mut self,
buf: &'b [u8],
addr: &'b SocketAddr
) -> PollSendTo<'a, 'b, Self>
fn send_to<'a, 'b>( &'a mut self, buf: &'b [u8], addr: &'b SocketAddr ) -> PollSendTo<'a, 'b, Self>
async fn send(&mut self, buf: &[u8]) -> io::Result<usize>
sourcefn recv<B, 'a, 'b>(&'a mut self, buf: &'b mut B) -> PollRecv<'a, 'b, Self, B>where
B: BufMut,
fn recv<B, 'a, 'b>(&'a mut self, buf: &'b mut B) -> PollRecv<'a, 'b, Self, B>where
B: BufMut,
async fn recv<B>(&mut self, buf: &mut [u8]) -> io::Result<()>
sourcefn recv_from<B, 'a, 'b>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'a, 'b, Self, B>where
B: BufMut,
fn recv_from<B, 'a, 'b>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'a, 'b, Self, B>where
B: BufMut,
async fn recv<B>(&mut self, buf: &mut [u8]) -> io::Result<SocketAddr>
sourcefn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self>
fn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self>
async fn recrecv_from_full(&mut self) -> io::Result<(Vec<u8>, SocketAddr)>
Object Safety§
This trait is not object safe.