Skip to main content

StateSignatureService

Trait StateSignatureService 

Source
pub trait StateSignatureService:
    Send
    + Sync
    + 'static {
    // Required method
    fn get_state_signature<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetStateSignatureRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StateSignatureResponse>, 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 StateSignatureServiceServer.

Required Methods§

Source

fn get_state_signature<'life0, 'async_trait>( &'life0 self, request: Request<GetStateSignatureRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<StateSignatureResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get this node’s light client state signature for a block

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§