From 17893388feed5f91ebd254ac7ad8e2801ca8a6d0 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Wed, 19 Dec 2018 16:14:14 +0000 Subject: Place barrier and waiters in their own modules --- src/lib.rs | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 27dffea..6407236 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,15 +10,13 @@ pub mod helix; pub mod kraken; pub mod types; pub mod error; +pub mod sync; + pub use self::helix::Client as HelixClient; pub use self::kraken::Client as KrakenClient; use reqwest::r#async::Client as ReqwestClient; -use reqwest::header::HeaderMap; -use std::marker::PhantomData; -use std::sync::Arc; -use std::collections::BTreeMap; pub struct Client { pub helix: HelixClient, @@ -34,21 +32,3 @@ impl Client { } } } - -trait Request { - fn url(&self) -> String; - fn headers(&self) -> &HeaderMap; - fn query(&self) -> &BTreeMap; - fn returns(&self) -> T; -} - -pub struct GetRequest { - inner: Arc>, -} - -struct GetRequestRef { - url: String, -// headers: HeaderMap, -// query: BTreeMap, - returns: PhantomData, -} -- cgit v1.2.3