making this work

This commit is contained in:
Nikolay Volf
2016-04-20 15:55:08 +03:00
parent e0ae0724e2
commit 59e18ad659
4 changed files with 179 additions and 27 deletions

View File

@@ -16,7 +16,7 @@
//! Binary representation of types
trait BinaryConvertable {
pub trait BinaryConvertable {
fn size(&self) -> usize;
fn to_bytes(buffer: &mut [u8]);

View File

@@ -21,4 +21,6 @@ extern crate semver;
extern crate nanomsg;
pub mod interface;
pub use interface::{IpcInterface, IpcSocket, invoke, IpcConfig, Handshake, Error, WithSocket, BinaryConvertable};
pub mod binary;
pub use interface::{IpcInterface, IpcSocket, invoke, IpcConfig, Handshake, Error, WithSocket};
pub use binary::{BinaryConvertable};