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>
impl<H: Handoff> SendCtx<H>
Context provided to a subgraph for reading from a handoff. Corresponds to a SendPort
.
sourcepub fn give<T>(&self, item: T) -> Twhere
H: CanReceive<T>,
pub fn give<T>(&self, item: T) -> Twhere
H: CanReceive<T>,
Alias for Handoff::give
on the inner H
.
sourcepub fn try_give<T>(&self, item: T) -> Result<T, T>where
H: TryCanReceive<T>,
pub fn try_give<T>(&self, item: T) -> Result<T, T>where
H: TryCanReceive<T>,
Alias for Handoff::try_give
on the inner H
.