I am working on a
UdpStream api to provide a analogous interface to TcpStream for a udp socket for client session management over udp.
I want to implement AsyncRead and AsyncWrite for my struct which has its own read and write methods.
If it was sync code I would simply call self.read and self.write in the
impl Read and
impl Write respectively. However I dont have much understanding on the basics of the
Futures and the docs of tokio about implementing asyncread/write are wip at this stage.
poll_read function takes whole bunch of things and returns a
So basically I am trying to understand how to go from
async fn self.read -> Result<_,_> to