Skip to content
This repository was archived by the owner on Jan 18, 2020. It is now read-only.
This repository was archived by the owner on Jan 18, 2020. It is now read-only.

breaking changes in 0.14 #382

Description

@ubnt-intrepid
  • remove the server and test implementation from the core crate
  • remove a lifetime parameter from Endpoint (Remove lifetime parameter from Endpoint #383)
    • we should wait for the implementation of generic associated types (GAT) to be completed.
  • Add a type parameter to Endpoint to generalize the type of request bodies:
    trait Endpoint<Bd> {
        fn apply(&self, cx: ApplyContext<'_, Bd>) -> ApplyResult<Self::Future>;
    }
  • Introduce a trait that represents a Future with the explicit request information:
    trait Future<Bd> {
        type Ok;
        type Error;
    
        fn poll_ready(&mut self, cx: &mut FutureContext<'_, Bd>) -> Poll<Self::Ok, Self::Error>;
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions