Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tricky-pipe): add try_cast to erased tx/rxs #38

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Nov 29, 2023

This commit adds new SerReceiver::try_cast and
DeserSender::try_cast methods, which attempt to recover a typed Receiver or Sender from an erased SerReceiver or DeserSender, respectively. These methods return an error if the requested type does not match the original erased type.

This commit adds new `SerReceiver::try_cast` and
`DeserSender::try_cast` methods, which attempt to recover a typed
`Receiver` or `Sender` from an erased `SerReceiver` or `DeserSender`,
respectively. These methods return an error if the requested type does
not match the original erased type.
@hawkw hawkw merged commit b441d3d into main Nov 29, 2023
8 checks passed
@hawkw hawkw deleted the eliza/re-type branch November 29, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant