pub trait ChannelOpener:
Send
+ Sync
+ 'static {
// Required methods
fn lsp_list<'life0, 'async_trait>(
&'life0 self,
request: Request<LspListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LspListReply>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn lsp_full_list<'life0, 'async_trait>(
&'life0 self,
request: Request<LspFullListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LspFullListReply>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn register_payment<'life0, 'async_trait>(
&'life0 self,
request: Request<RegisterPaymentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RegisterPaymentReply>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn check_channels<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckChannelsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CheckChannelsReply>, 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 ChannelOpenerServer.
Required Methods§
fn lsp_list<'life0, 'async_trait>(
&'life0 self,
request: Request<LspListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LspListReply>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn lsp_full_list<'life0, 'async_trait>(
&'life0 self,
request: Request<LspFullListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LspFullListReply>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn lsp_full_list<'life0, 'async_trait>(
&'life0 self,
request: Request<LspFullListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<LspFullListReply>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns active and historical LSPs used by a node. In the response, the LSP with a non-empty fee list is active, the LSPs with an empty fee list are historical.