diff options
author | David Blajda <blajda@hotmail.com> | 2019-05-08 15:38:37 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2019-05-08 15:38:37 +0000 |
commit | 98fb79b85e3cfbb547e5340b30623511daf09ef5 (patch) | |
tree | a03bd7a95c86a92eb7510409429f50433056d7ab /src/sync/waiter.rs | |
parent | 0e09c2c06fc0b81f11d12985a4172c815233db17 (diff) |
:WIP: Move types to a different crate
Diffstat (limited to 'src/sync/waiter.rs')
-rw-r--r-- | src/sync/waiter.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/sync/waiter.rs b/src/sync/waiter.rs deleted file mode 100644 index 1005e3d..0000000 --- a/src/sync/waiter.rs +++ /dev/null @@ -1,12 +0,0 @@ -use futures::Future; -use futures::future::{Shared, SharedError}; -use crate::error::ConditionError; - -pub trait Waiter { - type Item: Default; - type Error: From<SharedError<ConditionError>>; - - fn blocked(&self) -> bool; - fn condition(&self) - -> Shared<Box<Future<Item=(), Error=ConditionError> + Send>>; -} |