Type Alias dfir_rs::scheduled::port::RecvPort

source ·
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>>

Methods for TeeingHandoff teeing and dropping.

source

pub fn tee(&self, hf: &mut Dfir<'_>) -> RecvPort<TeeingHandoff<T>>

Tees this TeeingHandoff, given the Dfir instance it belongs to.

source

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.