pub trait FundManager: Send + Sync + 'static {
    // Required methods
    fn open_channel<'life0, 'async_trait>(
        &'life0 self,
        request: Request<OpenChannelRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<OpenChannelReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn update_channel_policy<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateChannelPolicyRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<UpdateChannelPolicyReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn add_fund_init<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AddFundInitRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<AddFundInitReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn add_fund_status<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AddFundStatusRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<AddFundStatusReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn remove_fund<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RemoveFundRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RemoveFundReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn redeem_removed_funds<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RedeemRemovedFundsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RedeemRemovedFundsReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_swap_payment<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSwapPaymentRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetSwapPaymentReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn register_transaction_confirmation<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RegisterTransactionConfirmationRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RegisterTransactionConfirmationResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with FundManagerServer.

Required Methods§

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

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

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

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

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

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

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

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

Implementors§