pub struct StreamProducer<T> { /* private fields */ }Trait Implementations§
Source§impl<D, T: Send + Sync + 'static> StreamProducer<D> for StreamProducer<T>
impl<D, T: Send + Sync + 'static> StreamProducer<D> for StreamProducer<T>
Source§type Buffer = Option<<StreamProducer<T> as StreamProducer<D>>::Item>
type Buffer = Option<<StreamProducer<T> as StreamProducer<D>>::Item>
The
WriteBuffer type to use when delivering items.Source§fn poll_produce<'a>(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
store: StoreContextMut<'a, D>,
destination: Destination<'a, Self::Item, Self::Buffer>,
finish: bool,
) -> Poll<Result<StreamResult>>
fn poll_produce<'a>( self: Pin<&mut Self>, cx: &mut Context<'_>, store: StoreContextMut<'a, D>, destination: Destination<'a, Self::Item, Self::Buffer>, finish: bool, ) -> Poll<Result<StreamResult>>
Handle a host- or guest-initiated read by delivering zero or more items
to the specified destination. Read more
Auto Trait Implementations§
impl<T> Freeze for StreamProducer<T>
impl<T> RefUnwindSafe for StreamProducer<T>
impl<T> Send for StreamProducer<T>where
T: Send,
impl<T> Sync for StreamProducer<T>where
T: Send,
impl<T> Unpin for StreamProducer<T>
impl<T> UnsafeUnpin for StreamProducer<T>
impl<T> UnwindSafe for StreamProducer<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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more