Restioson/xtra

Feature Request: relax return type in into sink

elyase opened this issue · 2 comments

it there a reason why into_sink only supports handlers with Return = ()?

Yes because all return values would be lost as Sinks don't support returning them.

If you are okay with that, you can easily implement your own. But it would be more type-safe to create a new handler that does error handling etc inside and thus confirms to the interface.

makes sense, thanks for clarifying!