Struct netlink_proto::sys::TokioSocket
source · [−]pub struct TokioSocket(_);
Expand description
An I/O object representing a Netlink socket.
Trait Implementations
sourceimpl AsRawFd for TokioSocket
impl AsRawFd for TokioSocket
sourceimpl AsyncSocket for TokioSocket
impl AsyncSocket for TokioSocket
sourcefn socket_mut(&mut self) -> &mut Socket
fn socket_mut(&mut self) -> &mut Socket
Mutable access to underyling Socket
sourcefn socket_ref(&self) -> &Socket
fn socket_ref(&self) -> &Socket
Access underyling Socket
sourcefn new(protocol: isize) -> Result<TokioSocket, Error>
fn new(protocol: isize) -> Result<TokioSocket, Error>
Wrapper for Socket::new
sourcefn poll_send(
&mut self,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
fn poll_send(
&mut self,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize, Error>>
Polling wrapper for Socket::send
sourcefn poll_send_to(
&mut self,
cx: &mut Context<'_>,
buf: &[u8],
addr: &SocketAddr
) -> Poll<Result<usize, Error>>
fn poll_send_to(
&mut self,
cx: &mut Context<'_>,
buf: &[u8],
addr: &SocketAddr
) -> Poll<Result<usize, Error>>
Polling wrapper for Socket::send_to
sourcefn poll_recv<B>(
&mut self,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<(), Error>> where
B: BufMut,
fn poll_recv<B>(
&mut self,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<(), Error>> where
B: BufMut,
Polling wrapper for Socket::recv
Read more
sourcefn poll_recv_from<B>(
&mut self,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<SocketAddr, Error>> where
B: BufMut,
fn poll_recv_from<B>(
&mut self,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<SocketAddr, Error>> where
B: BufMut,
Polling wrapper for Socket::recv_from
Read more
sourcefn poll_recv_from_full(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(Vec<u8, Global>, SocketAddr), Error>>
fn poll_recv_from_full(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(Vec<u8, Global>, SocketAddr), Error>>
Polling wrapper for Socket::recv_from_full
Read more
sourceimpl FromRawFd for TokioSocket
impl FromRawFd for TokioSocket
sourceunsafe fn from_raw_fd(fd: i32) -> TokioSocket
unsafe fn from_raw_fd(fd: i32) -> TokioSocket
Constructs a new instance of Self
from the given raw file
descriptor. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TokioSocket
impl Send for TokioSocket
impl Sync for TokioSocket
impl Unpin for TokioSocket
impl !UnwindSafe for TokioSocket
Blanket Implementations
sourceimpl<S> AsyncSocketExt for S where
S: AsyncSocket,
impl<S> AsyncSocketExt for S where
S: AsyncSocket,
sourcefn send(&'a mut self, buf: &'b [u8]) -> PollSend<'a, 'b, Self>
fn send(&'a mut self, buf: &'b [u8]) -> PollSend<'a, 'b, Self>
async fn send(&mut self, buf: &[u8]) -> io::Result<usize>
sourcefn send_to(
&'a mut self,
buf: &'b [u8],
addr: &'b SocketAddr
) -> PollSendTo<'a, 'b, Self>
fn send_to(
&'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 mut self, buf: &'b mut B) -> PollRecv<'a, 'b, Self, B> where
B: BufMut,
fn recv<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 mut self, buf: &'b mut B) -> PollRecvFrom<'a, 'b, Self, B> where
B: BufMut,
fn recv_from<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)>
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more