Bootstrapping an actix-web server

Starting an actix-web server instance looks similar to other Rust web frameworks, but requires a System actor instance. We don't need to use System directly, but need to run it by calling the run method when everything is ready. This call starts the System actor and blocks the current thread. Internally, it uses the block_on method that we discussed in previous chapters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.76.138