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

Owned streams #31

Merged
merged 9 commits into from
Mar 21, 2019
Merged

Owned streams #31

merged 9 commits into from
Mar 21, 2019

Conversation

KodrAus
Copy link
Collaborator

@KodrAus KodrAus commented Mar 18, 2019

Closes #24

Refactors the internals of sval that weren't given much thought originally.

  • There's now a private collect module that contains the extensions to Stream to make it nicer for complex values with a structure that's known upfront.
  • Introduces OwnedStream<S>, a type for safely capturing some impl Stream that you can hang on to and call methods on. This is useful for sitting behind tokio_trace's Visit type, which streams its structure one field at a time.

There might be a slight performance regression that needs to be measured.

@KodrAus KodrAus changed the title [WIP] Owned streams Owned streams Mar 21, 2019
@KodrAus KodrAus merged commit a470388 into sval-rs:master Mar 21, 2019
@KodrAus KodrAus deleted the feat/owned-stream branch March 21, 2019 01:46
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