summaryrefslogtreecommitdiffstats
path: root/src/mastodon_client.rs
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2020-09-29 23:08:36 -0400
committerPaul Woolcock <paul@woolcock.us>2020-09-29 23:47:05 -0400
commit6ed05e7d2357c01e2545f36316fc9262409483b6 (patch)
treeb8bcc66dac5a70db129ae590e8d0d356cfb4c1a3 /src/mastodon_client.rs
parentd0e257df8523b0fa87fa3277cc04ee348c4023ed (diff)
use the async reqwest client but present the same blocking api
Diffstat (limited to 'src/mastodon_client.rs')
-rw-r--r--src/mastodon_client.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mastodon_client.rs b/src/mastodon_client.rs
index 3fc0739..d5e935b 100644
--- a/src/mastodon_client.rs
+++ b/src/mastodon_client.rs
@@ -18,6 +18,7 @@ use crate::{
/// Represents the set of methods that a Mastodon Client can do, so that
/// implementations might be swapped out for testing
#[allow(unused)]
+#[async_trait::async_trait]
pub trait MastodonClient {
/// Type that wraps streaming API streams
type Stream: Iterator<Item = Event>;