diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-19 16:14:14 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-19 16:14:14 +0000 |
commit | 17893388feed5f91ebd254ac7ad8e2801ca8a6d0 (patch) | |
tree | c4fb2710eb264562aa3721dadf5f43b183c6f42d /src/lib.rs | |
parent | fbee478ad333732982f7e0eecdcc3681a6d71f2f (diff) |
Place barrier and waiters in their own modules
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -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<T> { - fn url(&self) -> String; - fn headers(&self) -> &HeaderMap; - fn query(&self) -> &BTreeMap<String, String>; - fn returns(&self) -> T; -} - -pub struct GetRequest<T> { - inner: Arc<GetRequestRef<T>>, -} - -struct GetRequestRef<T> { - url: String, -// headers: HeaderMap, -// query: BTreeMap<String, String>, - returns: PhantomData<T>, -} |