Function erlang_port::nouse_stdio[][src]

pub unsafe fn nouse_stdio(
    packet_size: PacketSize
) -> IOPort<PacketReceiver<File>, PacketSender<File>>

Creates an IOPort using file descriptors 3 and 4 with the specified packet size.

This allows the port application to continue to use stdout for logging/other output.

This should be used with ports that have been opened in Erlang/Elixir with the :nouse_stdio and {:packet, N} options, where N matches packet_size.

This function is unsafe, and if you call this function for a port that was not created with nouse_stdio then it will panic.