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

Refactor the transport layer to use GAT #2

Open
wants to merge 2 commits into
base: pink
Choose a base branch
from
Open

Refactor the transport layer to use GAT #2

wants to merge 2 commits into from

Conversation

kvinwang
Copy link
Collaborator

The GAT got stabilized. Let's see how useful it could be.

@@ -64,16 +66,44 @@ type Value<'a> = &'a dyn erased_serde::Serialize;
/// Transport implementation
pub trait Transport: Clone {
/// The type of future this transport returns when a call is made.
type Out: core::future::Future<Output = Result<Vec<u8>>>;
type Out<T>: core::future::Future<Output = Result<T>>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it is

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