Type Alias 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.

Trait Implementations

Source§

impl<S: Polarity, H> RefCast for PortCtx<S, H>

Source§

type From = H

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self