summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-19 16:14:14 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-19 16:14:14 +0000
commit17893388feed5f91ebd254ac7ad8e2801ca8a6d0 (patch)
treec4fb2710eb264562aa3721dadf5f43b183c6f42d /src/lib.rs
parentfbee478ad333732982f7e0eecdcc3681a6d71f2f (diff)
Place barrier and waiters in their own modules
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs24
1 files changed, 2 insertions, 22 deletions
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<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>,
-}