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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
#![cfg_attr(feature = "cargo-clippy", allow(new_without_default_derive))]
#![cfg_attr(feature = "cargo-clippy", allow(new_without_default))]
#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
#![cfg_attr(feature = "cargo-clippy", allow(option_map_unit_fn))]
#[macro_use]
extern crate futures;
extern crate grpcio_sys as grpc_sys;
extern crate libc;
#[macro_use]
extern crate log;
#[cfg(feature = "protobuf-codec")]
extern crate protobuf;
mod async;
mod call;
mod channel;
mod client;
mod codec;
mod cq;
#[cfg(feature = "secure")]
mod credentials;
mod env;
mod error;
mod log_util;
mod metadata;
mod server;
pub use call::client::{
CallOption, ClientCStreamReceiver, ClientCStreamSender, ClientDuplexReceiver,
ClientDuplexSender, ClientSStreamReceiver, ClientUnaryReceiver, StreamingCallSink,
};
pub use call::server::{
ClientStreamingSink, ClientStreamingSinkResult, Deadline, DuplexSink, DuplexSinkFailure,
RequestStream, RpcContext, ServerStreamingSink, ServerStreamingSinkFailure, UnarySink,
UnarySinkResult,
};
pub use call::{Method, MethodType, RpcStatus, RpcStatusCode, WriteFlags};
pub use channel::{
Channel, ChannelBuilder, CompressionAlgorithms, CompressionLevel, LbPolicy, OptTarget,
};
pub use client::Client;
#[cfg(feature = "protobuf-codec")]
pub use codec::pb_codec::{de as pb_de, ser as pb_ser};
pub use codec::Marshaller;
#[cfg(feature = "secure")]
pub use credentials::{
ChannelCredentials, ChannelCredentialsBuilder, ServerCredentials, ServerCredentialsBuilder,
};
pub use env::{EnvBuilder, Environment};
pub use error::{Error, Result};
pub use log_util::redirect_log;
pub use metadata::{Metadata, MetadataBuilder, MetadataIter};
pub use server::{Server, ServerBuilder, Service, ServiceBuilder, ShutdownFuture};