Updating syntex et al (#4983)

* Migrating to new syntex

* Updating to latest syntex

* Another fix for nightly
This commit is contained in:
Tomasz Drwięga
2017-03-21 21:26:05 +01:00
committed by Nikolay Volf
parent 797a3e1cd9
commit 498d5c0660
16 changed files with 240 additions and 211 deletions

View File

@@ -42,8 +42,8 @@ impl From<PushMessageError> for Error {
}
}
#[ipc(client_ident="RemoteJobDispatcher")]
/// Interface that can provide pow/blockchain-specific responses for the clients
#[ipc(client_ident="RemoteJobDispatcher")]
pub trait JobDispatcher: Send + Sync {
// json for initial client handshake
fn initial(&self) -> Option<String> { None }
@@ -55,8 +55,8 @@ pub trait JobDispatcher: Send + Sync {
fn submit(&self, payload: Vec<String>) -> Result<(), Error>;
}
#[ipc(client_ident="RemoteWorkHandler")]
/// Interface that can handle requests to push job for workers
#[ipc(client_ident="RemoteWorkHandler")]
pub trait PushWorkHandler: Send + Sync {
/// push the same work package for all workers (`payload`: json of pow-specific set of work specification)
fn push_work_all(&self, payload: String) -> Result<(), Error>;