pub fn maelstrom_client_source(
meta: &MaelstromMeta,
) -> impl Stream<Item = (String, Value)> + UnpinAvailable on (crate features
deploy or sim) and (crate features maelstrom_runtime or maelstrom) only.Expand description
Creates a stream of client messages from Maelstrom stdin. Returns tuples of (client_id, message_body) where client_id is the source client and message_body is the JSON value of the message body.
This function is meant to be used with source_stream on a Cluster location.