fasterthanlime , (Bearbeitet ) Englisch
@fasterthanlime@hachyderm.io avatar

Having a little axum puzzle today???

(axum 0.7.5, rustc 1.79)

edit: https://doc.rust-lang.org/stable/std/future/trait.IntoFuture.html

wacker ,
@wacker@sharkey.world avatar

@fasterthanlime .await uses the IntoFuture trait, maybe tokio::spawn only accepts Future? you could try calling server.into_future() (you might need to import the trait)

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@wacker ohhhhhhh I forgot about that level of indirection x)

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine