pub type RecvPort<H> = Port<RECV, H>;
Expand description
Recv-specific variant of Port
. An input port.
Aliased Type§
struct RecvPort<H> { /* private fields */ }
Implementations§
source§impl<T: Clone> RecvPort<TeeingHandoff<T>>
impl<T: Clone> RecvPort<TeeingHandoff<T>>
Methods for TeeingHandoff
teeing and dropping.
sourcepub fn tee(&self, hf: &mut Dfir<'_>) -> RecvPort<TeeingHandoff<T>>
pub fn tee(&self, hf: &mut Dfir<'_>) -> RecvPort<TeeingHandoff<T>>
Tees this TeeingHandoff
, given the Dfir
instance it belongs to.
sourcepub fn drop(self, hf: &mut Dfir<'_>)
pub fn drop(self, hf: &mut Dfir<'_>)
Marks this output of a TeeingHandoff
as dropped so that no more data will be sent to
it, given the Dfir
instance it belongs to.
It is recommended to not not use this method and instead simply avoid teeing a
TeeingHandoff
when it is not needed.