-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathlib.rs
More file actions
46 lines (38 loc) · 1.05 KB
/
lib.rs
File metadata and controls
46 lines (38 loc) · 1.05 KB
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
// Copyright (c) 2018-2023 MobileCoin, Inc.
//! T3 gRPC API.
use mc_util_uri::{Uri, UriScheme};
mod autogenerated_code {
pub mod t3_v1 {
include!(concat!(env!("OUT_DIR"), "/protos-auto-gen/t3.v1.rs"));
}
pub mod external {
pub mod v1 {
include!(concat!(env!("OUT_DIR"), "/protos-auto-gen/external.v1.rs"));
}
}
}
pub mod tonic {
pub mod external {
pub mod v1 {
tonic::include_proto!("external.v1");
}
}
pub mod t3 {
pub mod v1 {
tonic::include_proto!("t3.v1");
}
}
}
pub use autogenerated_code::{t3_v1::*, *};
pub type T3Uri = Uri<T3Scheme>;
/// T3 Uri Scheme
#[derive(Debug, Hash, Ord, PartialOrd, Eq, PartialEq, Clone)]
pub struct T3Scheme {}
impl UriScheme for T3Scheme {
/// The part before the '://' of a URL.
const SCHEME_SECURE: &'static str = "t3";
const SCHEME_INSECURE: &'static str = "insecure-t3";
/// Default port numbers
const DEFAULT_SECURE_PORT: u16 = 443;
const DEFAULT_INSECURE_PORT: u16 = 8080;
}