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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user