[][src]Struct neli::socket::NlMessageIter

pub struct NlMessageIter<'a, T, P> { /* fields omitted */ }

Iterator over messages returned from a recv_nl call

Methods

impl<'a, T, P> NlMessageIter<'a, T, P> where
    T: Nl + NlType,
    P: Nl
[src]

pub fn new(socket_ref: &'a mut NlSocket) -> Self[src]

Construct a new iterator that yields Nlmsghdr structs from the provided buffer

Trait Implementations

impl<'a, T, P> Iterator for NlMessageIter<'a, T, P> where
    T: Nl + NlType + Debug,
    P: Nl + Debug
[src]

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

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, T, P> RefUnwindSafe for NlMessageIter<'a, T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, P> Send for NlMessageIter<'a, T, P> where
    P: Send,
    T: Send

impl<'a, T, P> Sync for NlMessageIter<'a, T, P> where
    P: Sync,
    T: Sync

impl<'a, T, P> Unpin for NlMessageIter<'a, T, P> where
    P: Unpin,
    T: Unpin

impl<'a, T, P> !UnwindSafe for NlMessageIter<'a, T, P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.