Trait Invoicer
pub trait Invoicer:
Send
+ Sync
+ 'static {
// Required methods
fn register_device<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterReply>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn send_invoice<'life0, 'async_trait>(
&'life0 self,
request: Request<PaymentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InvoiceReply>, 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 InvoicerServer.