Skip to main content

DdkRpc

Trait DdkRpc 

Source
pub trait DdkRpc:
    Send
    + Sync
    + 'static {
Show 19 methods // Required methods fn info<'life0, 'async_trait>( &'life0 self, request: Request<InfoRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InfoResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn send_offer<'life0, 'async_trait>( &'life0 self, request: Request<SendOfferRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SendOfferResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn accept_offer<'life0, 'async_trait>( &'life0 self, request: Request<AcceptOfferRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AcceptOfferResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_offers<'life0, 'async_trait>( &'life0 self, request: Request<ListOffersRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListOffersResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn new_address<'life0, 'async_trait>( &'life0 self, request: Request<NewAddressRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<NewAddressResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_balance<'life0, 'async_trait>( &'life0 self, request: Request<WalletBalanceRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<WalletBalanceResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_sync<'life0, 'async_trait>( &'life0 self, request: Request<WalletSyncRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<WalletSyncResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn sync<'life0, 'async_trait>( &'life0 self, request: Request<SyncRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SyncResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_wallet_transactions<'life0, 'async_trait>( &'life0 self, request: Request<GetWalletTransactionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetWalletTransactionsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_utxos<'life0, 'async_trait>( &'life0 self, request: Request<ListUtxosRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListUtxosResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_peers<'life0, 'async_trait>( &'life0 self, request: Request<ListPeersRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListPeersResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn connect_peer<'life0, 'async_trait>( &'life0 self, request: Request<ConnectRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConnectResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_oracles<'life0, 'async_trait>( &'life0 self, request: Request<ListOraclesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListOraclesResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_contracts<'life0, 'async_trait>( &'life0 self, request: Request<ListContractsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListContractsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn send<'life0, 'async_trait>( &'life0 self, request: Request<SendRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SendResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn oracle_announcements<'life0, 'async_trait>( &'life0 self, request: Request<OracleAnnouncementsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<OracleAnnouncementsResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_enum<'life0, 'async_trait>( &'life0 self, request: Request<CreateEnumRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateEnumResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_numeric<'life0, 'async_trait>( &'life0 self, request: Request<CreateNumericRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateNumericResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn sign_announcement<'life0, 'async_trait>( &'life0 self, request: Request<SignRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<SignResponse>, Status>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}
Expand description

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

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§