This is the error log:
`Summer` is not a future
the trait `Future` is not implemented for `Summer`
Summer must be a future or must implement `IntoFuture` to be awaited
required because of the requirements on the impl of `IntoFuture` for `Summer`rustcE0277
main.rs(11, 11): remove the `.await`
pub struct Summer {
listener: TcpListener,
}
impl IntoFuture for AddrIncoming {
type Output;
type Future;
fn into_future(self) -> Self::Future {
todo!()
}
}
I implemented IntoFuture for struct according to the error log, but I don't know what to do next