forked from tikv/client-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspan.rs
More file actions
61 lines (61 loc) · 1.85 KB
/
span.rs
File metadata and controls
61 lines (61 loc) · 1.85 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpanSet {
#[prost(uint64, tag = "1")]
pub start_time_ns: u64,
#[prost(uint64, tag = "2")]
pub cycles_per_sec: u64,
#[prost(message, repeated, tag = "3")]
pub spans: ::prost::alloc::vec::Vec<Span>,
#[prost(uint64, tag = "4")]
pub create_time_ns: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Root {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Parent {
#[prost(uint64, tag = "1")]
pub id: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Continue {
#[prost(uint64, tag = "1")]
pub id: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Link {
#[prost(oneof = "link::Link", tags = "1, 2, 3")]
pub link: ::core::option::Option<link::Link>,
}
/// Nested message and enum types in `Link`.
pub mod link {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Link {
#[prost(message, tag = "1")]
Root(super::Root),
#[prost(message, tag = "2")]
Parent(super::Parent),
#[prost(message, tag = "3")]
Continue(super::Continue),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Span {
#[prost(uint64, tag = "1")]
pub id: u64,
#[prost(message, optional, tag = "2")]
pub link: ::core::option::Option<Link>,
#[prost(uint64, tag = "3")]
pub begin_cycles: u64,
#[prost(uint64, tag = "4")]
pub end_cycles: u64,
#[prost(uint32, tag = "5")]
pub event: u32,
}