[−][src]Struct suspend_channel::AsyncStreamScope
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]
Notable traits for AsyncStreamSend<'_, T>
impl<T> Future for AsyncStreamSend<'_, T> type Output = ();
'b: 'a,
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]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,