[][src]Struct websocket_base::ws::receiver::MessageIterator

pub struct MessageIterator<'a, Recv, R> where
    Recv: 'a + Receiver,
    R: 'a + Read
{ /* fields omitted */ }

An iterator over messages from a Receiver.

Trait Implementations

impl<'a, Recv, R> Iterator for MessageIterator<'a, Recv, R> where
    Recv: 'a + Receiver,
    R: Read
[src]

type Item = WebSocketResult<Recv::M>

The type of the elements being iterated over.

fn next(&mut self) -> Option<WebSocketResult<Recv::M>>[src]

Get the next message from the receiver. Always returns Some.

Auto Trait Implementations

impl<'a, Recv, R> Send for MessageIterator<'a, Recv, R> where
    R: Send,
    Recv: Send

impl<'a, Recv, R> Sync for MessageIterator<'a, Recv, R> where
    R: Sync,
    Recv: Sync

impl<'a, Recv, R> Unpin for MessageIterator<'a, Recv, R>

impl<'a, Recv, R> !UnwindSafe for MessageIterator<'a, Recv, R>

impl<'a, Recv, R> RefUnwindSafe for MessageIterator<'a, Recv, R> where
    R: RefUnwindSafe,
    Recv: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,