penumbra_community_pool::component

Trait StateWriteExt

Source
pub trait StateWriteExt: StateWrite {
    // Provided methods
    fn put_community_pool_params(&mut self, params: CommunityPoolParameters) { ... }
    fn community_pool_deposit<'life0, 'async_trait>(
        &'life0 mut self,
        value: Value,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
    fn community_pool_withdraw<'life0, 'async_trait>(
        &'life0 mut self,
        value: Value,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature component only.

Provided Methods§

Source

fn put_community_pool_params(&mut self, params: CommunityPoolParameters)

Writes the provided Community Pool parameters to the JMT.

Source

fn community_pool_deposit<'life0, 'async_trait>( &'life0 mut self, value: Value, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Source

fn community_pool_withdraw<'life0, 'async_trait>( &'life0 mut self, value: Value, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

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<T> StateWriteExt for T
where T: StateWrite + ?Sized,