1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#![warn(missing_docs)]
#![allow(clippy::new_ret_no_self)]
extern crate bytecodec;
extern crate byteorder;
extern crate cannyls;
extern crate fibers;
extern crate fibers_rpc;
extern crate fibers_tasque;
extern crate futures;
extern crate libfrugalos;
extern crate prometrics;
#[macro_use]
extern crate protobuf_codec;
extern crate frugalos_raft;
extern crate raftlog;
extern crate rendezvous_hash;
#[macro_use]
extern crate slog;
#[macro_use]
extern crate trackable;
macro_rules! dump {
($($e:expr),*) => {
format!(concat!($(stringify!($e), "={:?}; "),*), $($e),*)
}
}
pub use self::error::{Error, ErrorKind};
pub use machine::DeviceGroup;
pub use rpc::RpcServer;
pub use service::{Event, Service, ServiceHandle};
pub mod cluster;
mod builder;
mod config;
mod error;
mod machine;
mod protobuf;
mod rpc;
mod service;
pub type Result<T> = ::std::result::Result<T, Error>;