Links an output transfer (LHS) to an input transfer (RHS).
The linking strategy is determined by the capability flags of both transfers. Sync strategies take priority over async ones.
— data type flowing through the link
— type of the input transfer (RHS)
— output transfer (source)
— input transfer (sink)
Optionaloptions: LinkConfig<RTransfer>
— optional link config (onError for async-push rejection)
SubscriberInterface for breaking the link
Strategy interface for linking transfers.
A link strategy provides a single method:
link()— connects an output transfer to an input transfer based on their capability flagsImplementations can override the method to customize linking behavior (e.g., logging, serialization, custom error handling for unsupported combinations).
Example