blob: 1fcfe47962b0bab7b8c28db007788854e8d45a4c (
plain)
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
|
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate log;
extern crate serde;
#[cfg(windows)]
#[path = "nop_ipc.rs"]
mod ipc_impl;
#[cfg(not(windows))]
#[path = "zmq_ipc.rs"]
mod ipc_impl;
pub use self::ipc_impl::*;
pub mod http_ipc;
/// An Id created by the Ipc server that the client can use to connect to it
pub type IpcServerId = String;
error_chain!{
errors {
ReadFailure {
description("Could not read IPC message")
}
ParseFailure {
description("Unable to serialize/deserialize message")
}
CouldNotStartServer {
description("Failed to start the IPC server")
}
SendError {
description("Unable to send message")
}
}
}
|