Skip to main content

SyncAccountStorageMaps

Trait SyncAccountStorageMaps 

Source
pub trait SyncAccountStorageMaps {
    type Input;
    type Output;

    // Required methods
    fn decode(request: SyncAccountStorageMapsRequest) -> Result<Self::Input>;
    fn encode(output: Self::Output) -> Result<SyncAccountStorageMapsResponse>;
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        input: Self::Input,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn full<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SyncAccountStorageMapsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<SyncAccountStorageMapsResponse>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Associated Types§

Required Methods§

Source

fn decode(request: SyncAccountStorageMapsRequest) -> Result<Self::Input>

Source

fn encode(output: Self::Output) -> Result<SyncAccountStorageMapsResponse>

Source

fn handle<'life0, 'async_trait>( &'life0 self, input: Self::Input, ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn full<'life0, 'async_trait>( &'life0 self, request: Request<SyncAccountStorageMapsRequest>, ) -> Pin<Box<dyn Future<Output = Result<SyncAccountStorageMapsResponse>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§