Some events may be of interest to users of the simpler Incoming api. The exact item type is a bit tricky, because we already have a fully populated Result<TlsStream<Tcp>,TcpError>, which isn't easily extended with the event type, which covers both positive and error events.
Relevant comment: https://github.com/FlorianUekermann/rustls-acme/pull/18#issuecomment-1136540419
adding a log_events() method, which filters out Events and does the appropriate logging may be a good idea, to get the current behavior without much extra code.
Some events may be of interest to users of the simpler
Incoming
api. The exact item type is a bit tricky, because we already have a fully populatedResult<TlsStream<Tcp>,TcpError>
, which isn't easily extended with the event type, which covers both positive and error events. Relevant comment: https://github.com/FlorianUekermann/rustls-acme/pull/18#issuecomment-1136540419adding a
log_events()
method, which filters outEvent
s and does the appropriate logging may be a good idea, to get the current behavior without much extra code.