[][src]Struct async_injector::Stream

pub struct Stream<T> { /* fields omitted */ }

A stream of updates to a value in the Injector.

This is created using Injector::stream or Injector::stream_key and can be used to make sure that an asynchronous process has access to the most up-to-date value from the injector.

Implementations

impl<T> Stream<T>[src]

pub async fn recv(&mut self) -> Option<T>[src]

Receive the next injected element from the stream.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Stream<T>[src]

impl<T> Send for Stream<T> where
    T: Send
[src]

impl<T> Sync for Stream<T> where
    T: Sync
[src]

impl<T> Unpin for Stream<T> where
    T: Unpin
[src]

impl<T> !UnwindSafe for Stream<T>[src]

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<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.