[][src]Struct neli::socket::tokio::NlSocket

pub struct NlSocket<T, P> { /* fields omitted */ }

Tokio-enabled Netlink socket struct

Implementations

impl<'a, T, P> NlSocket<T, P> where
    T: NlType
[src]

pub fn new<S>(s: S) -> Result<Self> where
    S: Into<NlSocket>, 
[src]

Set up NlSocket for use with tokio; set to nonblocking state and wrap in polling mechanism.

pub fn empty(&self) -> bool[src]

Check if underlying received message buffer is empty

Trait Implementations

impl<T, P> AsyncRead for NlSocket<T, P>[src]

impl<T, P> AsyncWrite for NlSocket<T, P>[src]

impl<T, P> Stream for NlSocket<T, P> where
    T: NlType,
    P: Nl
[src]

type Item = Result<Nlmsghdr<T, P>, NlError>

Values yielded by the stream.

impl<T, P> Unpin for NlSocket<T, P>[src]

Auto Trait Implementations

impl<T, P> !RefUnwindSafe for NlSocket<T, P>[src]

impl<T, P> Send for NlSocket<T, P> where
    P: Send,
    T: Send
[src]

impl<T, P> Sync for NlSocket<T, P> where
    P: Sync,
    T: Sync
[src]

impl<T, P> !UnwindSafe for NlSocket<T, P>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<St> StreamExt for St where
    St: Stream + ?Sized
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]