Writes the given JSON data to stdout, thereby ‘sending’ a message
back to Chrome. If you are on stable, then you also need to import macros
from the serde_json crate.
Reads input from a stream, decoded according to
Chrome’s own documentation on native messaging.
(https://developer.chrome.com/extensions/nativeMessaging)
Writes an output to a stream, encoded according to
Chrome’s documentation on native messaging.
(https://developer.chrome.com/extensions/nativeMessaging)
Takes a custom value which implements serde::Serialize.