Trait NodeInfo
pub trait NodeInfo:
Send
+ Sync
+ 'static {
// Required methods
fn set_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<SetNodeInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetNodeInfoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_node_info<'life0, 'async_trait>(
&'life0 self,
request: Request<GetNodeInfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetNodeInfoResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with NodeInfoServer.