Trait IAdminGateway
pub trait IAdminGateway {
type Error;
Show 22 methods
// Required methods
fn handle_get_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GatewayInfo, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_list_channels_msg<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ChannelInfo>, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_payment_summary_msg<'life0, 'async_trait>(
&'life0 self,
__arg1: PaymentSummaryPayload,
) -> Pin<Box<dyn Future<Output = Result<PaymentSummaryResponse, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_leave_federation<'life0, 'async_trait>(
&'life0 self,
payload: LeaveFedPayload,
) -> Pin<Box<dyn Future<Output = Result<FederationInfo, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_connect_federation<'life0, 'async_trait>(
&'life0 self,
payload: ConnectFedPayload,
) -> Pin<Box<dyn Future<Output = Result<FederationInfo, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_set_fees_msg<'life0, 'async_trait>(
&'life0 self,
payload: SetFeesPayload,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_mnemonic_msg<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MnemonicResponse, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_open_channel_msg<'life0, 'async_trait>(
&'life0 self,
payload: OpenChannelRequest,
) -> Pin<Box<dyn Future<Output = Result<Txid, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_close_channels_with_peer_msg<'life0, 'async_trait>(
&'life0 self,
payload: CloseChannelsWithPeerRequest,
) -> Pin<Box<dyn Future<Output = Result<CloseChannelsWithPeerResponse, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_get_balances_msg<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GatewayBalances, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_send_onchain_msg<'life0, 'async_trait>(
&'life0 self,
payload: SendOnchainRequest,
) -> Pin<Box<dyn Future<Output = Result<Txid, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_get_ln_onchain_address_msg<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Address, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_deposit_address_msg<'life0, 'async_trait>(
&'life0 self,
payload: DepositAddressPayload,
) -> Pin<Box<dyn Future<Output = Result<Address, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_create_invoice_for_operator_msg<'life0, 'async_trait>(
&'life0 self,
payload: CreateInvoiceForOperatorPayload,
) -> Pin<Box<dyn Future<Output = Result<Bolt11Invoice, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_pay_invoice_for_operator_msg<'life0, 'async_trait>(
&'life0 self,
payload: PayInvoiceForOperatorPayload,
) -> Pin<Box<dyn Future<Output = Result<Preimage, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_list_transactions_msg<'life0, 'async_trait>(
&'life0 self,
payload: ListTransactionsPayload,
) -> Pin<Box<dyn Future<Output = Result<ListTransactionsResponse, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn handle_shutdown_msg<'life0, 'async_trait>(
&'life0 self,
task_group: TaskGroup,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_task_group(&self) -> TaskGroup;
fn get_password_hash(&self) -> String;
fn gatewayd_version(&self) -> String;
fn get_chain_source<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = (Option<BlockchainInfo>, ChainSource, Network)> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn lightning_mode(&self) -> LightningMode;
}