Type Alias hydroflow::scheduled::port::SendCtx

source ·
pub type SendCtx<H> = PortCtx<SEND, H>;
Expand description

Send-specific PortCtx. Output to send into a handoff.

Aliased Type§

struct SendCtx<H> { /* private fields */ }

Implementations§

source§

impl<H: Handoff> SendCtx<H>

Context provided to a subgraph for reading from a handoff. Corresponds to a SendPort.

source

pub fn give<T>(&self, item: T) -> T
where H: CanReceive<T>,

Alias for Handoff::give on the inner H.

source

pub fn try_give<T>(&self, item: T) -> Result<T, T>
where H: TryCanReceive<T>,

Alias for Handoff::try_give on the inner H.