SendCtx

Type Alias SendCtx 

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

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

Aliased Type§

pub 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.