Crate roux_stream

Crate roux_stream 

Source
Expand description

A streaming API for the roux Reddit client.

Reddit’s API does not provide “firehose”-style streaming of new posts and comments. Instead, the endpoints for retrieving the latest posts and comments have to be polled regularly. This crate automates that task and provides streams for a subreddit’s posts (submissions) and comments.

See stream_submissions and stream_comments for details.

§Logging

This module uses the logging infrastructure provided by the log crate.

Enums§

StreamError
Error that occurs when pulling new data from Reddit failed.

Functions§

stream_comments
Stream new comments in a subreddit.
stream_submissions
Stream new submissions in a subreddit.