Trait breez_sdk_core::grpc::swapper_server::Swapper

pub trait Swapper:
    Send
    + Sync
    + 'static {
    // Required methods
    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 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 redeem_swap_payment<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RedeemSwapPaymentRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RedeemSwapPaymentReply>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_reverse_routing_node<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetReverseRoutingNodeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetReverseRoutingNodeReply>, 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 SwapperServer.

Required Methods§

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 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 redeem_swap_payment<'life0, 'async_trait>( &'life0 self, request: Request<RedeemSwapPaymentRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RedeemSwapPaymentReply>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

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

Implementors§