Function erlang_port::receive [−][src]
pub fn receive<T>(reader: &mut Read) -> Option<T> where
T: CommandParser,
Reads a single port message from a stream.
Attempts to read a single message from a Read. If there are no more messages returns None. if there's a problem reading the message it will panic.
Each message is expected to start with a 4 byte message size, as happens
when you open an Erlang port in {:packet, 4}
mode.