pub fn from_unix_stream(stream: UnixStream, cfg: SharedCfg) -> Result<Io, Error>
Converts a standard-library Unix stream into an Io value.
Io
Panics if called outside an ntex runtime, for example from a plain thread or a runtime from another crate. Call it from code running under #[ntex::main], #[ntex::test], or an ntex System.
#[ntex::main]
#[ntex::test]
System