diff options
author | Till Hoeppner | 2015-04-16 23:32:00 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-04-16 23:32:00 +0200 |
commit | cd182daf35eae3739511f3751843ad01f0d489b3 (patch) | |
tree | 1ce4274d6107b2fe5c87f71437fd9aa988cf090b /src/format/mod.rs | |
parent | 8bf21091210af570a74a29eb731a867c0788ebdb (diff) | |
download | ilc-cd182daf35eae3739511f3751843ad01f0d489b3.tar.gz ilc-cd182daf35eae3739511f3751843ad01f0d489b3.tar.xz ilc-cd182daf35eae3739511f3751843ad01f0d489b3.zip |
Add untested support for binary serialization with rustc_serialize and bincode
Diffstat (limited to 'src/format/mod.rs')
-rw-r--r-- | src/format/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/format/mod.rs b/src/format/mod.rs index 9f6d30d..2c271bd 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -7,9 +7,10 @@ use std::io::{ self, BufRead, Write }; use log::Event; pub mod weechat3; +pub mod binary; pub trait Encode<W> where W: Write { - fn encode(&self, output: W, event: &Event) -> io::Result<()>; + fn encode(&self, output: W, event: &Event) -> ::Result<()>; } pub trait Decode<R, O> where R: BufRead, O: Iterator<Item = ::Result<Event>> { |