pub fn write_stdin<T: Serialize>(&mut self, input: &T) {
        let mut buf = Vec::new();
        bincode::serialize_into(&mut buf, input).expect("serialization failed");
        self.state.input_stream.push_back(buf);
    }
Write a serializable input to the standard input stream.
crates/core/executor/src/io.rs