[][src]Struct xaynet::state_machine::events::EventListener

pub struct EventListener<E>(_);

A listener for coordinator events. It can be used to either retrieve the latest Event<E> emitted by the coordinator (with EventListener::get_latest) or to wait for events (since EventListener<E> implements Stream<Item=Event<E>.

Implementations

impl<E> EventListener<E> where
    E: Clone
[src]

pub fn get_latest(&self) -> Event<E>[src]

Trait Implementations

impl<E: Clone> Clone for EventListener<E>[src]

impl<E: Debug> Debug for EventListener<E>[src]

impl<E> From<Receiver<Event<E>>> for EventListener<E>[src]

impl<E: Clone> Stream for EventListener<E>[src]

type Item = Event<E>

Values yielded by the stream.

Auto Trait Implementations

impl<E> !RefUnwindSafe for EventListener<E>

impl<E> Send for EventListener<E> where
    E: Send + Sync

impl<E> Sync for EventListener<E> where
    E: Send + Sync

impl<E> Unpin for EventListener<E>

impl<E> !UnwindSafe for EventListener<E>

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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]