Skip to content

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