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
48
49
50
51
52
53
54
55
56
57
58
59
#[macro_use]
extern crate lazy_static;
extern crate async_std;
extern crate bincode;
extern crate futures;
extern crate futures_codec;
extern crate serde;
extern crate servant_macro;
extern crate servant_codec as codec;
extern crate servant_log;
#[cfg(feature = "invoke")]
pub use servant_macro::invoke_interface;
#[cfg(feature = "notify")]
pub use servant_macro::notify_interface;
#[cfg(feature = "query")]
pub use servant_macro::query_interface;
#[cfg(feature = "report")]
pub use servant_macro::report_interface;
mod list;
mod servant;
#[cfg(any(feature = "adapter", feature = "terminal"))]
mod drop_guard;
#[cfg(feature = "adapter")]
mod accept;
#[cfg(feature = "adapter")]
mod adapter;
#[cfg(feature = "terminal")]
mod terminal;
#[cfg(feature = "default_gateway")]
mod gateway;
pub use crate::servant::{
Context, NotifyServant, Oid, ReportServant, Servant, ServantError, ServantRegister,
ServantResult,
};
#[cfg(feature = "adapter")]
pub use {
accept::accept_on,
adapter::{Adapter, AdapterRegister},
};
#[cfg(feature = "terminal")]
pub use terminal::Terminal;
#[cfg(feature = "default_gateway")]
pub use gateway::GatewayProxy;