Trait netlink_sys::async_socket_ext::AsyncSocketExt [−][src]
pub trait AsyncSocketExt: AsyncSocket {
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>ⓘNotable traits for PollSendTo<'_, '_, S>impl<S> Future for PollSendTo<'_, '_, S> where
S: AsyncSocket, type Output = Result<usize>;
{ ... }
fn recv<'a, 'b, B>(
&'a mut self,
buf: &'b mut B
) -> PollRecv<'a, 'b, Self, B>ⓘ
where
B: BufMut,
{ ... }
fn recv_from<'a, 'b, B>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'a, 'b, Self, B>ⓘNotable traits for PollRecvFrom<'_, '_, S, B>impl<S, B> Future for PollRecvFrom<'_, '_, S, B> where
S: AsyncSocket,
B: BufMut, type Output = Result<SocketAddr>;
where
B: BufMut,
{ ... }
fn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self>ⓘNotable traits for PollRecvFromFull<'_, S>impl<S> Future for PollRecvFromFull<'_, S> where
S: AsyncSocket, type Output = Result<(Vec<u8>, SocketAddr)>;
{ ... }
}
Expand description
Support trait for AsyncSocket
Provides awaitable variants of the poll functions from AsyncSocket
.
Provided methods
async fn send(&mut self, buf: &[u8]) -> io::Result<usize>
fn send_to<'a, 'b>(
&'a mut self,
buf: &'b [u8],
addr: &'b SocketAddr
) -> PollSendTo<'a, 'b, Self>ⓘNotable traits for PollSendTo<'_, '_, S>impl<S> Future for PollSendTo<'_, '_, S> where
S: AsyncSocket, type Output = Result<usize>;
fn send_to<'a, 'b>(
&'a mut self,
buf: &'b [u8],
addr: &'b SocketAddr
) -> PollSendTo<'a, 'b, Self>ⓘNotable traits for PollSendTo<'_, '_, S>impl<S> Future for PollSendTo<'_, '_, S> where
S: AsyncSocket, type Output = Result<usize>;
Notable traits for PollSendTo<'_, '_, S>
impl<S> Future for PollSendTo<'_, '_, S> where
S: AsyncSocket, type Output = Result<usize>;
async fn send(&mut self, buf: &[u8]) -> io::Result<usize>
async fn recv<B>(&mut self, buf: &mut [u8]) -> io::Result<()>
fn recv_from<'a, 'b, B>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'a, 'b, Self, B>ⓘNotable traits for PollRecvFrom<'_, '_, S, B>impl<S, B> Future for PollRecvFrom<'_, '_, S, B> where
S: AsyncSocket,
B: BufMut, type Output = Result<SocketAddr>;
where
B: BufMut,
fn recv_from<'a, 'b, B>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'a, 'b, Self, B>ⓘNotable traits for PollRecvFrom<'_, '_, S, B>impl<S, B> Future for PollRecvFrom<'_, '_, S, B> where
S: AsyncSocket,
B: BufMut, type Output = Result<SocketAddr>;
where
B: BufMut,
Notable traits for PollRecvFrom<'_, '_, S, B>
impl<S, B> Future for PollRecvFrom<'_, '_, S, B> where
S: AsyncSocket,
B: BufMut, type Output = Result<SocketAddr>;
async fn recv<B>(&mut self, buf: &mut [u8]) -> io::Result<SocketAddr>
fn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self>ⓘNotable traits for PollRecvFromFull<'_, S>impl<S> Future for PollRecvFromFull<'_, S> where
S: AsyncSocket, type Output = Result<(Vec<u8>, SocketAddr)>;
fn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self>ⓘNotable traits for PollRecvFromFull<'_, S>impl<S> Future for PollRecvFromFull<'_, S> where
S: AsyncSocket, type Output = Result<(Vec<u8>, SocketAddr)>;
Notable traits for PollRecvFromFull<'_, S>
impl<S> Future for PollRecvFromFull<'_, S> where
S: AsyncSocket, type Output = Result<(Vec<u8>, SocketAddr)>;
async fn recrecv_from_full(&mut self) -> io::Result<(Vec<u8>, SocketAddr)>