Skip to content

tls: simplify do_poll#48381

Merged
jkarneges merged 1 commit into
mainfrom
jkarneges/simplify-do-poll
Jul 2, 2026
Merged

tls: simplify do_poll#48381
jkarneges merged 1 commit into
mainfrom
jkarneges/simplify-do-poll

Conversation

@jkarneges

Copy link
Copy Markdown
Member

do_poll having 6 generics was bugging me, so I reworked things a bit:

  • Made it so the TlsOp and related interests can be looked up by enum value, to avoid needing closures to look up these things.
  • Replaced the as_io_err closure with a TryInto trait bound.

That reduces it to 3 generics, the I/O method to call and its success/error return types, which is a bit more reasonable.

@jkarneges jkarneges requested a review from a team July 2, 2026 19:28
@jkarneges jkarneges merged commit d52df5e into main Jul 2, 2026
19 checks passed
@jkarneges jkarneges deleted the jkarneges/simplify-do-poll branch July 2, 2026 20:37
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.

2 participants