Custom attribute for binary serialization (#3922)

* derive(Binary) -> binary

* ethcore types refact

* fixup ethcore

* make binary optional

* fix common types

* fix updater

* remove condition
This commit is contained in:
Nikolay Volf
2016-12-21 18:09:35 +04:00
committed by Gav Wood
parent b369939f20
commit af501e6467
39 changed files with 268 additions and 160 deletions

View File

@@ -19,7 +19,8 @@ use std::error::Error as StdError;
use util::H256;
use ipc::IpcConfig;
#[derive(Debug, Clone, Binary)]
#[derive(Debug, Clone)]
#[binary]
pub enum Error {
NoWork,
NoWorkers,
@@ -53,7 +54,7 @@ pub trait PushWorkHandler: Send + Sync {
fn push_work(&self, payloads: Vec<String>) -> Result<(), Error>;
}
#[derive(Binary)]
#[binary]
pub struct ServiceConfiguration {
pub listen_addr: String,
pub secret: Option<H256>,