[][src]Struct suspend_channel::AsyncStreamScope

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

A utility class for providing values to the stream.

Implementations

impl<T> AsyncStreamScope<'_, T>[src]

pub fn send<'a, 'b>(&'b mut self, value: T) -> AsyncStreamSend<'a, T>

Notable traits for AsyncStreamSend<'_, T>

impl<T> Future for AsyncStreamSend<'_, T> type Output = ();
where
    'b: 'a, 
[src]

Dispatch a value to the stream, returning a Future which will resolve when the value has been received.

Trait Implementations

impl<T> Clone for AsyncStreamScope<'_, T>[src]

impl<'a, T: Debug> Debug for AsyncStreamScope<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for AsyncStreamScope<'a, T>[src]

impl<'a, T> !Send for AsyncStreamScope<'a, T>[src]

impl<'a, T> !Sync for AsyncStreamScope<'a, T>[src]

impl<'a, T> Unpin for AsyncStreamScope<'a, T>[src]

impl<'a, T> !UnwindSafe for AsyncStreamScope<'a, 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> 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.