Summary
In this chapter, we implemented a lot of commands for our asynchronous FTP server and learned about using tokio
. We also saw in more detail what asynchronous I/O is, and its advantages and disadvantages. We used the newasync
/await
syntax to simplify the code usingtokio
. We learned what futures and streams are, and how they interact withtokio
. We also saw how to do proper error handling and how to do it concisely. In the next chapter, we'll complete the implementation of the FTP server and see how to test it.