referrerpolicy=no-referrer-when-downgrade

StatementSpecApiClient

Trait StatementSpecApiClient 

Source
pub trait StatementSpecApiClient: SubscriptionClientT {
    // Provided methods
    fn statement_unstable_add_filter<'life0, 'async_trait>(
        &'life0 self,
        subscription: String,
        topic_filter: TopicFilter,
    ) -> Pin<Box<dyn Future<Output = Result<AddFilterResponse, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn statement_unstable_remove_filter<'life0, 'async_trait>(
        &'life0 self,
        subscription: String,
        filter_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn statement_unstable_submit<'life0, 'async_trait>(
        &'life0 self,
        encoded: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<SubmitOutcome, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn statement_unstable_subscribe<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Subscription<SubscribeEvent>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the StatementSpecApi RPC API.

Provided Methods§

Source

fn statement_unstable_add_filter<'life0, 'async_trait>( &'life0 self, subscription: String, topic_filter: TopicFilter, ) -> Pin<Box<dyn Future<Output = Result<AddFilterResponse, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Attaches a filter to an existing subscription

Source

fn statement_unstable_remove_filter<'life0, 'async_trait>( &'life0 self, subscription: String, filter_id: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Detaches a filter from a subscription

Source

fn statement_unstable_submit<'life0, 'async_trait>( &'life0 self, encoded: Bytes, ) -> Pin<Box<dyn Future<Output = Result<SubmitOutcome, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Submits a SCALE-encoded statement to the store

Source

fn statement_unstable_subscribe<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Subscription<SubscribeEvent>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Opens a new statement subscription

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TypeJsonRpseeInteral> StatementSpecApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: SubscriptionClientT,