pub struct EmbeddedInputChannel<C, S> { /* private fields */ }Expand description
A channel flowing into an embedded dataflow, as the host provides it: a Stream for a stream
input or a membership stream, for the channel C (its generated marker type, see
EmbeddedChannel). The receiving end of a network channel is a EmbeddedNetworkInputChannel instead.
An EmbeddedInputChannel exists only with promises that meet C’s guarantees:
EmbeddedInputChannel::new takes the Promises and checks them, so wiring a channel always
states its guarantees and a mismatch with the dataflow is a type error at that call. Promising
more than a channel needs is fine. C is inferred from the field the EmbeddedInputChannel fills.
Implementations§
Source§impl<C: EmbeddedChannel, S> EmbeddedInputChannel<C, S>
impl<C: EmbeddedChannel, S> EmbeddedInputChannel<C, S>
Sourcepub fn new<O, R>(inner: S, promises: Promises<O, R>) -> Selfwhere
C: SatisfiedBy<O, R>,
pub fn new<O, R>(inner: S, promises: Promises<O, R>) -> Selfwhere
C: SatisfiedBy<O, R>,
Wraps a host stream for channel C, with promises that must meet its guarantees.
Auto Trait Implementations§
impl<C, S> Freeze for EmbeddedInputChannel<C, S>
impl<C, S> RefUnwindSafe for EmbeddedInputChannel<C, S>
impl<C, S> Send for EmbeddedInputChannel<C, S>
impl<C, S> Sync for EmbeddedInputChannel<C, S>
impl<C, S> Unpin for EmbeddedInputChannel<C, S>
impl<C, S> UnsafeUnpin for EmbeddedInputChannel<C, S>
impl<C, S> UnwindSafe for EmbeddedInputChannel<C, 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.