pub struct ReceiverStreamBuilder<O> { /* private fields */ }Implementations§
Source§impl<O: Send + 'static> ReceiverStreamBuilder<O>
impl<O: Send + 'static> ReceiverStreamBuilder<O>
Sourcepub fn tx(&self) -> Sender<DistResult<O>>
pub fn tx(&self) -> Sender<DistResult<O>>
Get a handle for sending data to the output
Sourcepub fn spawn_on<F>(&mut self, task: F, handle: &Handle)
pub fn spawn_on<F>(&mut self, task: F, handle: &Handle)
Same as [Self::spawn] but it spawns the task on the provided runtime
Sourcepub fn build(self) -> BoxStream<'static, DistResult<O>>
pub fn build(self) -> BoxStream<'static, DistResult<O>>
Create a stream of all data written to tx
Auto Trait Implementations§
impl<O> Freeze for ReceiverStreamBuilder<O>
impl<O> RefUnwindSafe for ReceiverStreamBuilder<O>
impl<O> Send for ReceiverStreamBuilder<O>where
O: Send,
impl<O> Sync for ReceiverStreamBuilder<O>where
O: Send,
impl<O> Unpin for ReceiverStreamBuilder<O>
impl<O> UnwindSafe for ReceiverStreamBuilder<O>
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> 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