pub struct EmbeddedOutputChannel<M, S> { /* private fields */ }Expand description
An output of an embedded dataflow, as the host provides it: an FnMut sink for the channel
M (its generated marker type, under outputs), whose EmbeddedChannel guarantees are
what the dataflow’s output stream provides.
An EmbeddedOutputChannel exists only with acknowledgements that cover what the output may do:
EmbeddedOutputChannel::new takes the Acknowledgements and checks them, so a sink cannot
silently receive elements out of order or more than once. Acknowledging more than an output
may do is fine. M is inferred from the field the EmbeddedOutputChannel fills.
Implementations§
Source§impl<M: EmbeddedChannel, S> EmbeddedOutputChannel<M, S>
impl<M: EmbeddedChannel, S> EmbeddedOutputChannel<M, S>
Sourcepub fn new<O, R>(inner: S, acknowledgements: Acknowledgements<O, R>) -> Selfwhere
M: AcknowledgedBy<O, R>,
pub fn new<O, R>(inner: S, acknowledgements: Acknowledgements<O, R>) -> Selfwhere
M: AcknowledgedBy<O, R>,
Wraps a host sink for output M, with acknowledgements that cover what M may do.
Auto Trait Implementations§
impl<M, S> Freeze for EmbeddedOutputChannel<M, S>
impl<M, S> RefUnwindSafe for EmbeddedOutputChannel<M, S>
impl<M, S> Send for EmbeddedOutputChannel<M, S>
impl<M, S> Sync for EmbeddedOutputChannel<M, S>
impl<M, S> Unpin for EmbeddedOutputChannel<M, S>
impl<M, S> UnsafeUnpin for EmbeddedOutputChannel<M, S>
impl<M, S> UnwindSafe for EmbeddedOutputChannel<M, S>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.