-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathsf.substreams.v1.rs
616 lines (616 loc) · 23 KB
/
sf.substreams.v1.rs
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(int64, tag="1")]
pub start_block_num: i64,
#[prost(string, tag="2")]
pub start_cursor: ::prost::alloc::string::String,
#[prost(uint64, tag="3")]
pub stop_block_num: u64,
#[prost(enumeration="ForkStep", repeated, tag="4")]
pub fork_steps: ::prost::alloc::vec::Vec<i32>,
#[prost(string, tag="5")]
pub irreversibility_condition: ::prost::alloc::string::String,
#[prost(message, optional, tag="6")]
pub modules: ::core::option::Option<Modules>,
#[prost(string, repeated, tag="7")]
pub output_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag="8")]
pub initial_store_snapshot_for_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Response {
#[prost(oneof="response::Message", tags="1, 2, 3, 4")]
pub message: ::core::option::Option<response::Message>,
}
/// Nested message and enum types in `Response`.
pub mod response {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Message {
/// Progress of data preparation, before sending in the stream of `data` events.
#[prost(message, tag="1")]
Progress(super::ModulesProgress),
#[prost(message, tag="2")]
SnapshotData(super::InitialSnapshotData),
#[prost(message, tag="3")]
SnapshotComplete(super::InitialSnapshotComplete),
#[prost(message, tag="4")]
Data(super::BlockScopedData),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialSnapshotComplete {
#[prost(string, tag="1")]
pub cursor: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialSnapshotData {
#[prost(string, tag="1")]
pub module_name: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub deltas: ::core::option::Option<StoreDeltas>,
#[prost(uint64, tag="4")]
pub sent_keys: u64,
#[prost(uint64, tag="3")]
pub total_keys: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockScopedData {
#[prost(message, repeated, tag="1")]
pub outputs: ::prost::alloc::vec::Vec<ModuleOutput>,
#[prost(message, optional, tag="3")]
pub clock: ::core::option::Option<Clock>,
#[prost(enumeration="ForkStep", tag="6")]
pub step: i32,
#[prost(string, tag="10")]
pub cursor: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleOutput {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(string, repeated, tag="4")]
pub logs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// LogsTruncated is a flag that tells you if you received all the logs or if they
/// were truncated because you logged too much (fixed limit currently is set to 128 KiB).
#[prost(bool, tag="5")]
pub logs_truncated: bool,
#[prost(oneof="module_output::Data", tags="2, 3")]
pub data: ::core::option::Option<module_output::Data>,
}
/// Nested message and enum types in `ModuleOutput`.
pub mod module_output {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Data {
#[prost(message, tag="2")]
MapOutput(::prost_types::Any),
#[prost(message, tag="3")]
StoreDeltas(super::StoreDeltas),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModulesProgress {
#[prost(message, repeated, tag="1")]
pub modules: ::prost::alloc::vec::Vec<ModuleProgress>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleProgress {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(oneof="module_progress::Type", tags="2, 3, 4, 5")]
pub r#type: ::core::option::Option<module_progress::Type>,
}
/// Nested message and enum types in `ModuleProgress`.
pub mod module_progress {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessedRange {
#[prost(message, repeated, tag="1")]
pub processed_ranges: ::prost::alloc::vec::Vec<super::BlockRange>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitialState {
#[prost(uint64, tag="2")]
pub available_up_to_block: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProcessedBytes {
#[prost(uint64, tag="1")]
pub total_bytes_read: u64,
#[prost(uint64, tag="2")]
pub total_bytes_written: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failed {
#[prost(string, tag="1")]
pub reason: ::prost::alloc::string::String,
#[prost(string, repeated, tag="2")]
pub logs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// FailureLogsTruncated is a flag that tells you if you received all the logs or if they
/// were truncated because you logged too much (fixed limit currently is set to 128 KiB).
#[prost(bool, tag="3")]
pub logs_truncated: bool,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Type {
#[prost(message, tag="2")]
ProcessedRanges(ProcessedRange),
#[prost(message, tag="3")]
InitialState(InitialState),
#[prost(message, tag="4")]
ProcessedBytes(ProcessedBytes),
#[prost(message, tag="5")]
Failed(Failed),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlockRange {
#[prost(uint64, tag="1")]
pub start_block: u64,
#[prost(uint64, tag="2")]
pub end_block: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoreDeltas {
#[prost(message, repeated, tag="1")]
pub deltas: ::prost::alloc::vec::Vec<StoreDelta>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoreDelta {
#[prost(enumeration="store_delta::Operation", tag="1")]
pub operation: i32,
#[prost(uint64, tag="2")]
pub ordinal: u64,
#[prost(string, tag="3")]
pub key: ::prost::alloc::string::String,
#[prost(bytes="vec", tag="4")]
pub old_value: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes="vec", tag="5")]
pub new_value: ::prost::alloc::vec::Vec<u8>,
}
/// Nested message and enum types in `StoreDelta`.
pub mod store_delta {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Operation {
Unset = 0,
Create = 1,
Update = 2,
Delete = 3,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Output {
#[prost(uint64, tag="1")]
pub block_num: u64,
#[prost(string, tag="2")]
pub block_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="4")]
pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag="10")]
pub value: ::core::option::Option<::prost_types::Any>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Modules {
#[prost(message, repeated, tag="1")]
pub modules: ::prost::alloc::vec::Vec<Module>,
#[prost(message, repeated, tag="2")]
pub binaries: ::prost::alloc::vec::Vec<Binary>,
}
/// Binary represents some code compiled to its binary form.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Binary {
#[prost(string, tag="1")]
pub r#type: ::prost::alloc::string::String,
#[prost(bytes="vec", tag="2")]
pub content: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Module {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(uint32, tag="4")]
pub binary_index: u32,
#[prost(string, tag="5")]
pub binary_entrypoint: ::prost::alloc::string::String,
#[prost(message, repeated, tag="6")]
pub inputs: ::prost::alloc::vec::Vec<module::Input>,
#[prost(message, optional, tag="7")]
pub output: ::core::option::Option<module::Output>,
#[prost(uint64, tag="8")]
pub initial_block: u64,
#[prost(oneof="module::Kind", tags="2, 3")]
pub kind: ::core::option::Option<module::Kind>,
}
/// Nested message and enum types in `Module`.
pub mod module {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KindMap {
#[prost(string, tag="1")]
pub output_type: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KindStore {
/// The `update_policy` determines the functions available to mutate the store
/// (like `set()`, `set_if_not_exists()` or `sum()`, etc..) in
/// order to ensure that parallel operations are possible and deterministic
///
/// Say a store cumulates keys from block 0 to 1M, and a second store
/// cumulates keys from block 1M to 2M. When we want to use this
/// store as a dependency for a downstream module, we will merge the
/// two stores according to this policy.
#[prost(enumeration="kind_store::UpdatePolicy", tag="1")]
pub update_policy: i32,
#[prost(string, tag="2")]
pub value_type: ::prost::alloc::string::String,
}
/// Nested message and enum types in `KindStore`.
pub mod kind_store {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UpdatePolicy {
Unset = 0,
/// Provides a store where you can `set()` keys, and the latest key wins
Set = 1,
/// Provides a store where you can `set_if_not_exists()` keys, and the first key wins
SetIfNotExists = 2,
/// Provides a store where you can `add_*()` keys, where two stores merge by summing its values.
Add = 3,
/// Provides a store where you can `min_*()` keys, where two stores merge by leaving the minimum value.
Min = 4,
/// Provides a store where you can `max_*()` keys, where two stores merge by leaving the maximum value.
Max = 5,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Input {
#[prost(oneof="input::Input", tags="1, 2, 3")]
pub input: ::core::option::Option<input::Input>,
}
/// Nested message and enum types in `Input`.
pub mod input {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Source {
/// ex: "sf.ethereum.type.v1.Block"
#[prost(string, tag="1")]
pub r#type: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Map {
/// ex: "block_to_pairs"
#[prost(string, tag="1")]
pub module_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Store {
#[prost(string, tag="1")]
pub module_name: ::prost::alloc::string::String,
#[prost(enumeration="store::Mode", tag="2")]
pub mode: i32,
}
/// Nested message and enum types in `Store`.
pub mod store {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Mode {
Unset = 0,
Get = 1,
Deltas = 2,
}
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Input {
#[prost(message, tag="1")]
Source(Source),
#[prost(message, tag="2")]
Map(Map),
#[prost(message, tag="3")]
Store(Store),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Output {
#[prost(string, tag="1")]
pub r#type: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(message, tag="2")]
KindMap(KindMap),
#[prost(message, tag="3")]
KindStore(KindStore),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Clock {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(uint64, tag="2")]
pub number: u64,
#[prost(message, optional, tag="3")]
pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Package {
/// Needs to be one so this file can be used _directly_ as a
/// buf `Image` andor a ProtoSet for grpcurl and other tools
#[prost(message, repeated, tag="1")]
pub proto_files: ::prost::alloc::vec::Vec<::prost_types::FileDescriptorProto>,
#[prost(uint64, tag="5")]
pub version: u64,
#[prost(message, optional, tag="6")]
pub modules: ::core::option::Option<Modules>,
#[prost(message, repeated, tag="7")]
pub module_meta: ::prost::alloc::vec::Vec<ModuleMetadata>,
#[prost(message, repeated, tag="8")]
pub package_meta: ::prost::alloc::vec::Vec<PackageMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PackageMetadata {
#[prost(string, tag="1")]
pub version: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub url: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub doc: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ModuleMetadata {
/// Corresponds to the index in `Package.metadata.package_meta`
#[prost(uint64, tag="1")]
pub package_index: u64,
#[prost(string, tag="2")]
pub doc: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ForkStep {
StepUnknown = 0,
/// Block is new head block of the chain, that is linear with the previous block
StepNew = 1,
/// Block is now forked and should be undone, it's not the head block of the chain anymore
StepUndo = 2,
/// Block is now irreversible and can be committed to (finality is chain specific, see chain documentation for more details)
StepIrreversible = 4,
}
/// Generated client implementations.
pub mod stream_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct StreamClient<T> {
inner: tonic::client::Grpc<T>,
}
impl StreamClient<tonic::transport::Channel> {
/// Attempt to create a new client by connecting to a given endpoint.
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> StreamClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> StreamClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
StreamClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with `gzip`.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
/// Enable decompressing responses with `gzip`.
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn blocks(
&mut self,
request: impl tonic::IntoRequest<super::Request>,
) -> Result<
tonic::Response<tonic::codec::Streaming<super::Response>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/sf.substreams.v1.Stream/Blocks",
);
self.inner.server_streaming(request.into_request(), path, codec).await
}
}
}
/// Generated server implementations.
pub mod stream_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
///Generated trait containing gRPC methods that should be implemented for use with StreamServer.
#[async_trait]
pub trait Stream: Send + Sync + 'static {
///Server streaming response type for the Blocks method.
type BlocksStream: futures_core::Stream<
Item = Result<super::Response, tonic::Status>,
>
+ Send
+ 'static;
async fn blocks(
&self,
request: tonic::Request<super::Request>,
) -> Result<tonic::Response<Self::BlocksStream>, tonic::Status>;
}
#[derive(Debug)]
pub struct StreamServer<T: Stream> {
inner: _Inner<T>,
accept_compression_encodings: EnabledCompressionEncodings,
send_compression_encodings: EnabledCompressionEncodings,
}
struct _Inner<T>(Arc<T>);
impl<T: Stream> StreamServer<T> {
pub fn new(inner: T) -> Self {
Self::from_arc(Arc::new(inner))
}
pub fn from_arc(inner: Arc<T>) -> Self {
let inner = _Inner(inner);
Self {
inner,
accept_compression_encodings: Default::default(),
send_compression_encodings: Default::default(),
}
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterceptedService<Self, F>
where
F: tonic::service::Interceptor,
{
InterceptedService::new(Self::new(inner), interceptor)
}
/// Enable decompressing requests with `gzip`.
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.accept_compression_encodings.enable_gzip();
self
}
/// Compress responses with `gzip`, if the client supports it.
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.send_compression_encodings.enable_gzip();
self
}
}
impl<T, B> tonic::codegen::Service<http::Request<B>> for StreamServer<T>
where
T: Stream,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
{
type Response = http::Response<tonic::body::BoxBody>;
type Error = std::convert::Infallible;
type Future = BoxFuture<Self::Response, Self::Error>;
fn poll_ready(
&mut self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>> {
Poll::Ready(Ok(()))
}
fn call(&mut self, req: http::Request<B>) -> Self::Future {
let inner = self.inner.clone();
match req.uri().path() {
"/sf.substreams.v1.Stream/Blocks" => {
#[allow(non_camel_case_types)]
struct BlocksSvc<T: Stream>(pub Arc<T>);
impl<T: Stream> tonic::server::ServerStreamingService<super::Request>
for BlocksSvc<T> {
type Response = super::Response;
type ResponseStream = T::BlocksStream;
type Future = BoxFuture<
tonic::Response<Self::ResponseStream>,
tonic::Status,
>;
fn call(
&mut self,
request: tonic::Request<super::Request>,
) -> Self::Future {
let inner = self.0.clone();
let fut = async move { (*inner).blocks(request).await };
Box::pin(fut)
}
}
let accept_compression_encodings = self.accept_compression_encodings;
let send_compression_encodings = self.send_compression_encodings;
let inner = self.inner.clone();
let fut = async move {
let inner = inner.0;
let method = BlocksSvc(inner);
let codec = tonic::codec::ProstCodec::default();
let mut grpc = tonic::server::Grpc::new(codec)
.apply_compression_config(
accept_compression_encodings,
send_compression_encodings,
);
let res = grpc.server_streaming(method, req).await;
Ok(res)
};
Box::pin(fut)
}
_ => {
Box::pin(async move {
Ok(
http::Response::builder()
.status(200)
.header("grpc-status", "12")
.header("content-type", "application/grpc")
.body(empty_body())
.unwrap(),
)
})
}
}
}
}
impl<T: Stream> Clone for StreamServer<T> {
fn clone(&self) -> Self {
let inner = self.inner.clone();
Self {
inner,
accept_compression_encodings: self.accept_compression_encodings,
send_compression_encodings: self.send_compression_encodings,
}
}
}
impl<T: Stream> Clone for _Inner<T> {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
impl<T: std::fmt::Debug> std::fmt::Debug for _Inner<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self.0)
}
}
impl<T: Stream> tonic::transport::NamedService for StreamServer<T> {
const NAME: &'static str = "sf.substreams.v1.Stream";
}
}