39
submitted 10 months ago by Sibbo@sopuli.xyz to c/rust@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] pm_me_your_quackers@lemmy.world 3 points 10 months ago* (last edited 10 months ago)
trait HttpService {
    async fn fetch(&self, url: Url) -> HtmlBody;
//  ^^^^^^^^ desugars to:
//  fn fetch(&self, url: Url) -> impl Future;
}

Man I've been waiting for this to be stabilized for a long time. So excited about it.

this post was submitted on 21 Dec 2023
39 points (100.0% liked)

Rust Programming

8093 readers
1 users here now

founded 5 years ago
MODERATORS