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

Allow fallible errors from external implementations of file source #648

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

jeffgrunewald
Copy link
Contributor

In order to implement the streaming file info poller the trait bounds require the implementer to define an impl of the MsgDecode trait which itself requires the TryFrom of the source to the destination type but also explicitly defines the TryFrom associated Error type as being file_store::Error. This allows passing errors from external instances of the MsgDecode trait without having to force them into one of the limited pre-defined list of FileStore error variants.

@jeffgrunewald jeffgrunewald requested a review from andymck October 16, 2023 06:53
@jeffgrunewald jeffgrunewald merged commit 80ed848 into main Oct 16, 2023
1 check passed
@jeffgrunewald jeffgrunewald deleted the jg/flexible-filestore-errors branch October 16, 2023 15:39
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.

3 participants