Struct netlink_sys::SmolSocket
source · pub struct SmolSocket(_);
Expand description
An I/O object representing a Netlink socket.
Trait Implementations§
source§impl AsRawFd for SmolSocket
impl AsRawFd for SmolSocket
source§impl AsyncSocket for SmolSocket
impl AsyncSocket for SmolSocket
source§fn socket_mut(&mut self) -> &mut Socket
fn socket_mut(&mut self) -> &mut Socket
Mutable access to underyling Socket
source§fn socket_ref(&self) -> &Socket
fn socket_ref(&self) -> &Socket
Access underyling
Socket
source§fn poll_send(&mut self, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>
fn poll_send(&mut self, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>
Polling wrapper for
Socket::send
source§fn poll_send_to(
&mut self,
cx: &mut Context<'_>,
buf: &[u8],
addr: &SocketAddr
) -> Poll<Result<usize>>
fn poll_send_to(
&mut self,
cx: &mut Context<'_>,
buf: &[u8],
addr: &SocketAddr
) -> Poll<Result<usize>>
Polling wrapper for
Socket::send_to
source§fn poll_recv<B>(&mut self, cx: &mut Context<'_>, buf: &mut B) -> Poll<Result<()>>where
B: BufMut,
fn poll_recv<B>(&mut self, cx: &mut Context<'_>, buf: &mut B) -> Poll<Result<()>>where
B: BufMut,
Polling wrapper for
Socket::recv
Read moresource§fn poll_recv_from<B>(
&mut self,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<SocketAddr>>where
B: BufMut,
fn poll_recv_from<B>(
&mut self,
cx: &mut Context<'_>,
buf: &mut B
) -> Poll<Result<SocketAddr>>where
B: BufMut,
Polling wrapper for
Socket::recv_from
Read moresource§fn poll_recv_from_full(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(Vec<u8>, SocketAddr)>>
fn poll_recv_from_full(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(Vec<u8>, SocketAddr)>>
Polling wrapper for
Socket::recv_from_full
Read moresource§impl FromRawFd for SmolSocket
impl FromRawFd for SmolSocket
source§unsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of
Self
from the given raw file
descriptor. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SmolSocket
impl Send for SmolSocket
impl Sync for SmolSocket
impl Unpin for SmolSocket
impl UnwindSafe for SmolSocket
Blanket Implementations§
source§impl<S> AsyncSocketExt for Swhere
S: AsyncSocket,
impl<S> AsyncSocketExt for Swhere
S: AsyncSocket,
source§fn 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>
source§fn 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>
source§fn recv<'a, 'b, B>(&'a mut self, buf: &'b mut B) -> PollRecv<'a, 'b, Self, B> ⓘwhere
B: BufMut,
fn recv<'a, 'b, 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<()>
source§fn recv_from<'a, 'b, B>(
&'a mut self,
buf: &'b mut B
) -> PollRecvFrom<'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> ⓘwhere
B: BufMut,
async fn recv<B>(&mut self, buf: &mut [u8]) -> io::Result<SocketAddr>
source§fn 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)>