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

examples: add an example on how to use the events framework #1179

Merged
merged 4 commits into from
Feb 17, 2022

Conversation

toidiu
Copy link
Contributor

@toidiu toidiu commented Feb 16, 2022

Issue #, if available:

Description of changes:
This PR adds an example on event framework usage.

Other changes:

  • attach Debug bound to the the generic Event and Meta types in on_event* so its possible to print them
  • mark event::Timestamp as Copy to make it easier to store.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

examples/event-framework/src/bin/main.rs Outdated Show resolved Hide resolved
quic/s2n-quic-core/src/event.rs Show resolved Hide resolved
examples/event-framework/src/lib.rs Show resolved Hide resolved
examples/event-framework/src/lib.rs Show resolved Hide resolved
examples/event-framework/src/lib.rs Outdated Show resolved Hide resolved
examples/event-framework/src/bin/main.rs Outdated Show resolved Hide resolved
examples/event-framework/src/bin/main.rs Outdated Show resolved Hide resolved
examples/event-framework/src/lib.rs Show resolved Hide resolved
@toidiu toidiu enabled auto-merge (squash) February 17, 2022 02:52
@toidiu toidiu merged commit 76ca5e6 into main Feb 17, 2022
@toidiu toidiu deleted the ak-event_example branch February 17, 2022 03:31
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