finchers icon indicating copy to clipboard operation
finchers copied to clipboard

breaking changes in 0.14

Open ubnt-intrepid opened this issue 5 years ago • 0 comments

  • remove the server and test implementation from the core crate
  • remove a 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>;
    }
    

ubnt-intrepid avatar Dec 30 '18 12:12 ubnt-intrepid