pub fn from_read<R: Read>(reader: R) -> Result<()>
Expand description

Loads environment variables from io::Read.

This is useful for loading environment variables from from IPC or the network.

For regular files, use from_path or from_filename.

Examples

use std::io::Read;
use std::os::unix::net::UnixStream;

let mut stream = UnixStream::connect("/some/socket").unwrap();
dotenvy::from_read(stream).unwrap();