Skip to main content

DepositCreditApplier

Trait DepositCreditApplier 

Source
pub trait DepositCreditApplier:
    Send
    + Sync
    + 'static {
    // Required methods
    fn apply_option_deposit<'life0, 'async_trait>(
        &'life0 self,
        request: OptionDepositRequest,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn apply_pm_liquidity_deposit<'life0, 'async_trait>(
        &'life0 self,
        command: RecordPmVaultDepositCommand,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Source

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

Implementations on Foreign Types§

Source§

impl DepositCreditApplier for Sender<OptionDepositRequest>

Source§

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

Source§

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

Implementors§