pub trait ConfigService:
Send
+ Sync
+ 'static {
// Required methods
fn get_hotshot_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetHotshotConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HotshotConfigResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_env<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEnvRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EnvResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_runtime_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRuntimeConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RuntimeConfigResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with ConfigServiceServer.
Required Methods§
Sourcefn get_hotshot_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetHotshotConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HotshotConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_hotshot_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetHotshotConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HotshotConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the consensus parameters this node runs with
Sourcefn get_env<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEnvRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EnvResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_env<'life0, 'async_trait>(
&'life0 self,
request: Request<GetEnvRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<EnvResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the allowlisted environment variables of this node, set or not
Sourcefn get_runtime_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRuntimeConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RuntimeConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_runtime_config<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRuntimeConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RuntimeConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the node’s effective runtime configuration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".