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

feat: box all errors, implement send sync #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xhyrom
Copy link

@xhyrom xhyrom commented Aug 24, 2024

related EFForg/tokio-dl-stream-to-disk#4

Sorry for committing the git part, i can remove it if you want to accept this. This will allow using this library in web frameworks like warp that requires thread-safety errors. Now, it throws:

rustc: `dyn StdError` cannot be sent between threads safely
the trait `Send` is not implemented for `dyn StdError`, which is required by `impl Future<Output = Result<impl Reply, Rejection>>: Send`
required for `Unique<dyn StdError>` to implement `Send`
the full name for the type has been written to '/home/hyro/Workspace/distroid/target/debug/deps/distroid-3a33c2c6c4999731.long-type-1970017503322297020.txt'
consider using `--verbose` to print the full type name to the console
the full name for the type has been written to '/home/hyro/Workspace/distroid/target/debug/deps/distroid-3a33c2c6c4999731.long-type-12577559284257743472.txt'
consider using `--verbose` to print the full type name to the console

also with axum.

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