pub struct SmolSocket(/* private fields */);Expand description
An I/O object representing a Netlink socket.
Trait Implementations§
Source§impl AsFd for SmolSocket
impl AsFd for SmolSocket
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
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
SocketSource§fn poll_send(&self, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>
fn poll_send(&self, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>
Polling wrapper for
Socket::sendSource§fn poll_send_to(
&self,
cx: &mut Context<'_>,
buf: &[u8],
addr: &SocketAddr,
) -> Poll<Result<usize>>
fn poll_send_to( &self, cx: &mut Context<'_>, buf: &[u8], addr: &SocketAddr, ) -> Poll<Result<usize>>
Polling wrapper for
Socket::send_toSource§fn poll_recv<B>(&self, cx: &mut Context<'_>, buf: &mut B) -> Poll<Result<()>>where
B: BufMut,
fn poll_recv<B>(&self, cx: &mut Context<'_>, buf: &mut B) -> Poll<Result<()>>where
B: BufMut,
Polling wrapper for
Socket::recv Read moreSource§fn poll_recv_from<B>(
&self,
cx: &mut Context<'_>,
buf: &mut B,
) -> Poll<Result<SocketAddr>>where
B: BufMut,
fn poll_recv_from<B>(
&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(
&self,
cx: &mut Context<'_>,
) -> Poll<Result<(Vec<u8>, SocketAddr)>>
fn poll_recv_from_full( &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 Freeze for SmolSocket
impl RefUnwindSafe for SmolSocket
impl Send for SmolSocket
impl Sync for SmolSocket
impl Unpin for SmolSocket
impl UnsafeUnpin for SmolSocket
impl UnwindSafe for SmolSocket
Blanket Implementations§
Source§impl<T> AsSource for Twhere
T: AsFd,
impl<T> AsSource for Twhere
T: AsFd,
Source§fn source(&self) -> BorrowedFd<'_>
fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.
Source§impl<S> AsyncSocketExt for Swhere
S: AsyncSocket,
impl<S> AsyncSocketExt for Swhere
S: AsyncSocket,
Source§fn send<'a, 'b>(&'a self, buf: &'b [u8]) -> PollSend<'a, 'b, Self> ⓘ
fn send<'a, 'b>(&'a self, buf: &'b [u8]) -> PollSend<'a, 'b, Self> ⓘ
async fn send(&self, buf: &[u8]) -> io::Result<usize>Source§fn send_to<'a, 'b>(
&'a self,
buf: &'b [u8],
addr: &'b SocketAddr,
) -> PollSendTo<'a, 'b, Self> ⓘ
fn send_to<'a, 'b>( &'a self, buf: &'b [u8], addr: &'b SocketAddr, ) -> PollSendTo<'a, 'b, Self> ⓘ
async fn send(&self, buf: &[u8]) -> io::Result<usize>Source§fn recv<'a, 'b, B>(&'a self, buf: &'b mut B) -> PollRecv<'a, 'b, Self, B> ⓘwhere
B: BufMut,
fn recv<'a, 'b, B>(&'a self, buf: &'b mut B) -> PollRecv<'a, 'b, Self, B> ⓘwhere
B: BufMut,
async fn recv<B>(&self, buf: &mut [u8]) -> io::Result<()>Source§fn recv_from<'a, 'b, B>(
&'a self,
buf: &'b mut B,
) -> PollRecvFrom<'a, 'b, Self, B> ⓘwhere
B: BufMut,
fn recv_from<'a, 'b, B>(
&'a self,
buf: &'b mut B,
) -> PollRecvFrom<'a, 'b, Self, B> ⓘwhere
B: BufMut,
async fn recv<B>(&self, buf: &mut [u8]) -> io::Result<SocketAddr>Source§fn recv_from_full(&self) -> PollRecvFromFull<'_, Self> ⓘ
fn recv_from_full(&self) -> PollRecvFromFull<'_, Self> ⓘ
async fn recrecv_from_full(&self) -> io::Result<(Vec<u8>, SocketAddr)>Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more