pub struct TokioSocket(/* private fields */);
Expand description

An I/O object representing a Netlink socket.

Trait Implementations§

source§

impl AsRawFd for TokioSocket

source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
source§

impl AsyncSocket for TokioSocket

source§

fn socket_mut(&mut self) -> &mut Socket

Mutable access to underyling Socket

source§

fn socket_ref(&self) -> &Socket

Access underyling Socket
source§

fn new(protocol: isize) -> Result<TokioSocket, Error>

Wrapper for Socket::new
source§

fn poll_send( &mut self, cx: &mut Context<'_>, buf: &[u8] ) -> Poll<Result<usize, Error>>

Polling wrapper for Socket::send
source§

fn poll_send_to( &mut self, cx: &mut Context<'_>, buf: &[u8], addr: &SocketAddr ) -> Poll<Result<usize, Error>>

Polling wrapper for Socket::send_to
source§

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
source§

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
source§

fn poll_recv_from_full( &mut self, cx: &mut Context<'_> ) -> Poll<Result<(Vec<u8>, SocketAddr), Error>>

Polling wrapper for Socket::recv_from_full Read more
source§

impl FromRawFd for TokioSocket

source§

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§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<S> AsyncSocketExt for S
where S: AsyncSocket,

source§

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>

async fn send(&mut self, buf: &[u8]) -> io::Result<usize>
source§

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<()>
source§

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>
source§

fn recv_from_full(&mut self) -> PollRecvFromFull<'_, Self>

async fn recrecv_from_full(&mut self) -> io::Result<(Vec<u8>, SocketAddr)>
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.