Reading environment variables

In the previous example, we used a value of the RUST_LOG environment variable to set filtering parameters for logging. We can use other environment variables to set parameters for our server as well. In the following example, we will use the ADDRESS environment variable to set the address of the socket we want to bind.

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

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