pub struct AsyncStream<T> { /* private fields */ }Expand description
Stream adapter for dequeue operations.
Implementations§
Source§impl<T> AsyncStream<T>
impl<T> AsyncStream<T>
Sourcepub fn new(scheduler: AsyncScheduler<T>) -> Self
pub fn new(scheduler: AsyncScheduler<T>) -> Self
Creates a new stream adapter.
Trait Implementations§
Source§impl<T: Send + 'static> Stream for AsyncStream<T>
impl<T: Send + 'static> Stream for AsyncStream<T>
Source§type Item = DequeueItem<T>
type Item = DequeueItem<T>
Values yielded by the stream.
Auto Trait Implementations§
impl<T> Freeze for AsyncStream<T>
impl<T> !RefUnwindSafe for AsyncStream<T>
impl<T> Send for AsyncStream<T>where
T: Send,
impl<T> !Sync for AsyncStream<T>
impl<T> Unpin for AsyncStream<T>
impl<T> !UnwindSafe for AsyncStream<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more