Crate chrome_native_messaging [−] [src]
Error handling is assisted by the
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
Starts an 'event loop' which waits for input from Chrome, and then calls the callback with the message. Despite its name, nothing about this function is asynchronous so if you want really efficient performance while running async tasks, you should probably write your own loop.
Reads input from a stream, decoded according to Chrome's own documentation on native messaging. (https://developer.chrome.com/extensions/nativeMessaging)
Writes an output from a stream, encoded according to Chrome's documentation on native messaging. (https://developer.chrome.com/extensions/nativeMessaging)