pub struct NodeClient<T> { /* private fields */ }
Implementations§
Source§impl NodeClient<Channel>
impl NodeClient<Channel>
Source§impl<T> NodeClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
impl<T> NodeClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Send + Sync>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Send + Sync>> + Send,
pub fn new(inner: T) -> NodeClient<T>
pub fn with_origin(inner: T, origin: Uri) -> NodeClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> NodeClient<InterceptedService<T, F>>where
F: Interceptor,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Default,
T: Service<Request<UnsyncBoxBody<Bytes, Status>>, Response = Response<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody>>,
<T as Service<Request<UnsyncBoxBody<Bytes, Status>>>>::Error: Into<Box<dyn Error + Send + Sync>> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> NodeClient<T>
pub fn send_compressed(self, encoding: CompressionEncoding) -> NodeClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> NodeClient<T>
pub fn accept_compressed(self, encoding: CompressionEncoding) -> NodeClient<T>
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> NodeClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> NodeClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> NodeClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> NodeClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn getinfo( &mut self, request: impl IntoRequest<GetinfoRequest>, ) -> Result<Response<GetinfoResponse>, Status>
pub async fn list_peers( &mut self, request: impl IntoRequest<ListpeersRequest>, ) -> Result<Response<ListpeersResponse>, Status>
pub async fn list_funds( &mut self, request: impl IntoRequest<ListfundsRequest>, ) -> Result<Response<ListfundsResponse>, Status>
pub async fn send_pay( &mut self, request: impl IntoRequest<SendpayRequest>, ) -> Result<Response<SendpayResponse>, Status>
pub async fn list_channels( &mut self, request: impl IntoRequest<ListchannelsRequest>, ) -> Result<Response<ListchannelsResponse>, Status>
pub async fn add_gossip( &mut self, request: impl IntoRequest<AddgossipRequest>, ) -> Result<Response<AddgossipResponse>, Status>
pub async fn add_psbt_output( &mut self, request: impl IntoRequest<AddpsbtoutputRequest>, ) -> Result<Response<AddpsbtoutputResponse>, Status>
pub async fn auto_clean_once( &mut self, request: impl IntoRequest<AutocleanonceRequest>, ) -> Result<Response<AutocleanonceResponse>, Status>
pub async fn auto_clean_status( &mut self, request: impl IntoRequest<AutocleanstatusRequest>, ) -> Result<Response<AutocleanstatusResponse>, Status>
pub async fn check_message( &mut self, request: impl IntoRequest<CheckmessageRequest>, ) -> Result<Response<CheckmessageResponse>, Status>
pub async fn close( &mut self, request: impl IntoRequest<CloseRequest>, ) -> Result<Response<CloseResponse>, Status>
pub async fn connect_peer( &mut self, request: impl IntoRequest<ConnectRequest>, ) -> Result<Response<ConnectResponse>, Status>
pub async fn create_invoice( &mut self, request: impl IntoRequest<CreateinvoiceRequest>, ) -> Result<Response<CreateinvoiceResponse>, Status>
pub async fn datastore( &mut self, request: impl IntoRequest<DatastoreRequest>, ) -> Result<Response<DatastoreResponse>, Status>
pub async fn datastore_usage( &mut self, request: impl IntoRequest<DatastoreusageRequest>, ) -> Result<Response<DatastoreusageResponse>, Status>
pub async fn create_onion( &mut self, request: impl IntoRequest<CreateonionRequest>, ) -> Result<Response<CreateonionResponse>, Status>
pub async fn del_datastore( &mut self, request: impl IntoRequest<DeldatastoreRequest>, ) -> Result<Response<DeldatastoreResponse>, Status>
pub async fn del_invoice( &mut self, request: impl IntoRequest<DelinvoiceRequest>, ) -> Result<Response<DelinvoiceResponse>, Status>
pub async fn dev_forget_channel( &mut self, request: impl IntoRequest<DevforgetchannelRequest>, ) -> Result<Response<DevforgetchannelResponse>, Status>
pub async fn emergency_recover( &mut self, request: impl IntoRequest<EmergencyrecoverRequest>, ) -> Result<Response<EmergencyrecoverResponse>, Status>
pub async fn get_emergency_recover_data( &mut self, request: impl IntoRequest<GetemergencyrecoverdataRequest>, ) -> Result<Response<GetemergencyrecoverdataResponse>, Status>
pub async fn expose_secret( &mut self, request: impl IntoRequest<ExposesecretRequest>, ) -> Result<Response<ExposesecretResponse>, Status>
pub async fn recover( &mut self, request: impl IntoRequest<RecoverRequest>, ) -> Result<Response<RecoverResponse>, Status>
pub async fn recover_channel( &mut self, request: impl IntoRequest<RecoverchannelRequest>, ) -> Result<Response<RecoverchannelResponse>, Status>
pub async fn invoice( &mut self, request: impl IntoRequest<InvoiceRequest>, ) -> Result<Response<InvoiceResponse>, Status>
pub async fn create_invoice_request( &mut self, request: impl IntoRequest<InvoicerequestRequest>, ) -> Result<Response<InvoicerequestResponse>, Status>
pub async fn disable_invoice_request( &mut self, request: impl IntoRequest<DisableinvoicerequestRequest>, ) -> Result<Response<DisableinvoicerequestResponse>, Status>
pub async fn list_invoice_requests( &mut self, request: impl IntoRequest<ListinvoicerequestsRequest>, ) -> Result<Response<ListinvoicerequestsResponse>, Status>
pub async fn list_datastore( &mut self, request: impl IntoRequest<ListdatastoreRequest>, ) -> Result<Response<ListdatastoreResponse>, Status>
pub async fn list_invoices( &mut self, request: impl IntoRequest<ListinvoicesRequest>, ) -> Result<Response<ListinvoicesResponse>, Status>
pub async fn send_onion( &mut self, request: impl IntoRequest<SendonionRequest>, ) -> Result<Response<SendonionResponse>, Status>
pub async fn list_send_pays( &mut self, request: impl IntoRequest<ListsendpaysRequest>, ) -> Result<Response<ListsendpaysResponse>, Status>
pub async fn list_transactions( &mut self, request: impl IntoRequest<ListtransactionsRequest>, ) -> Result<Response<ListtransactionsResponse>, Status>
pub async fn make_secret( &mut self, request: impl IntoRequest<MakesecretRequest>, ) -> Result<Response<MakesecretResponse>, Status>
pub async fn pay( &mut self, request: impl IntoRequest<PayRequest>, ) -> Result<Response<PayResponse>, Status>
pub async fn list_nodes( &mut self, request: impl IntoRequest<ListnodesRequest>, ) -> Result<Response<ListnodesResponse>, Status>
pub async fn wait_any_invoice( &mut self, request: impl IntoRequest<WaitanyinvoiceRequest>, ) -> Result<Response<WaitanyinvoiceResponse>, Status>
pub async fn wait_invoice( &mut self, request: impl IntoRequest<WaitinvoiceRequest>, ) -> Result<Response<WaitinvoiceResponse>, Status>
pub async fn wait_send_pay( &mut self, request: impl IntoRequest<WaitsendpayRequest>, ) -> Result<Response<WaitsendpayResponse>, Status>
pub async fn new_addr( &mut self, request: impl IntoRequest<NewaddrRequest>, ) -> Result<Response<NewaddrResponse>, Status>
pub async fn withdraw( &mut self, request: impl IntoRequest<WithdrawRequest>, ) -> Result<Response<WithdrawResponse>, Status>
pub async fn key_send( &mut self, request: impl IntoRequest<KeysendRequest>, ) -> Result<Response<KeysendResponse>, Status>
pub async fn fund_psbt( &mut self, request: impl IntoRequest<FundpsbtRequest>, ) -> Result<Response<FundpsbtResponse>, Status>
pub async fn send_psbt( &mut self, request: impl IntoRequest<SendpsbtRequest>, ) -> Result<Response<SendpsbtResponse>, Status>
pub async fn sign_psbt( &mut self, request: impl IntoRequest<SignpsbtRequest>, ) -> Result<Response<SignpsbtResponse>, Status>
pub async fn utxo_psbt( &mut self, request: impl IntoRequest<UtxopsbtRequest>, ) -> Result<Response<UtxopsbtResponse>, Status>
pub async fn tx_discard( &mut self, request: impl IntoRequest<TxdiscardRequest>, ) -> Result<Response<TxdiscardResponse>, Status>
pub async fn tx_prepare( &mut self, request: impl IntoRequest<TxprepareRequest>, ) -> Result<Response<TxprepareResponse>, Status>
pub async fn tx_send( &mut self, request: impl IntoRequest<TxsendRequest>, ) -> Result<Response<TxsendResponse>, Status>
pub async fn list_peer_channels( &mut self, request: impl IntoRequest<ListpeerchannelsRequest>, ) -> Result<Response<ListpeerchannelsResponse>, Status>
pub async fn list_closed_channels( &mut self, request: impl IntoRequest<ListclosedchannelsRequest>, ) -> Result<Response<ListclosedchannelsResponse>, Status>
pub async fn decode_pay( &mut self, request: impl IntoRequest<DecodepayRequest>, ) -> Result<Response<DecodepayResponse>, Status>
pub async fn decode( &mut self, request: impl IntoRequest<DecodeRequest>, ) -> Result<Response<DecodeResponse>, Status>
pub async fn del_pay( &mut self, request: impl IntoRequest<DelpayRequest>, ) -> Result<Response<DelpayResponse>, Status>
pub async fn del_forward( &mut self, request: impl IntoRequest<DelforwardRequest>, ) -> Result<Response<DelforwardResponse>, Status>
pub async fn disable_offer( &mut self, request: impl IntoRequest<DisableofferRequest>, ) -> Result<Response<DisableofferResponse>, Status>
pub async fn enable_offer( &mut self, request: impl IntoRequest<EnableofferRequest>, ) -> Result<Response<EnableofferResponse>, Status>
pub async fn disconnect( &mut self, request: impl IntoRequest<DisconnectRequest>, ) -> Result<Response<DisconnectResponse>, Status>
pub async fn feerates( &mut self, request: impl IntoRequest<FeeratesRequest>, ) -> Result<Response<FeeratesResponse>, Status>
pub async fn fetch_invoice( &mut self, request: impl IntoRequest<FetchinvoiceRequest>, ) -> Result<Response<FetchinvoiceResponse>, Status>
pub async fn fund_channel_cancel( &mut self, request: impl IntoRequest<FundchannelCancelRequest>, ) -> Result<Response<FundchannelCancelResponse>, Status>
pub async fn fund_channel_complete( &mut self, request: impl IntoRequest<FundchannelCompleteRequest>, ) -> Result<Response<FundchannelCompleteResponse>, Status>
pub async fn fund_channel( &mut self, request: impl IntoRequest<FundchannelRequest>, ) -> Result<Response<FundchannelResponse>, Status>
pub async fn fund_channel_start( &mut self, request: impl IntoRequest<FundchannelStartRequest>, ) -> Result<Response<FundchannelStartResponse>, Status>
pub async fn get_log( &mut self, request: impl IntoRequest<GetlogRequest>, ) -> Result<Response<GetlogResponse>, Status>
pub async fn funder_update( &mut self, request: impl IntoRequest<FunderupdateRequest>, ) -> Result<Response<FunderupdateResponse>, Status>
pub async fn get_route( &mut self, request: impl IntoRequest<GetrouteRequest>, ) -> Result<Response<GetrouteResponse>, Status>
pub async fn list_addresses( &mut self, request: impl IntoRequest<ListaddressesRequest>, ) -> Result<Response<ListaddressesResponse>, Status>
pub async fn list_forwards( &mut self, request: impl IntoRequest<ListforwardsRequest>, ) -> Result<Response<ListforwardsResponse>, Status>
pub async fn list_offers( &mut self, request: impl IntoRequest<ListoffersRequest>, ) -> Result<Response<ListoffersResponse>, Status>
pub async fn list_pays( &mut self, request: impl IntoRequest<ListpaysRequest>, ) -> Result<Response<ListpaysResponse>, Status>
pub async fn list_htlcs( &mut self, request: impl IntoRequest<ListhtlcsRequest>, ) -> Result<Response<ListhtlcsResponse>, Status>
pub async fn multi_fund_channel( &mut self, request: impl IntoRequest<MultifundchannelRequest>, ) -> Result<Response<MultifundchannelResponse>, Status>
pub async fn multi_withdraw( &mut self, request: impl IntoRequest<MultiwithdrawRequest>, ) -> Result<Response<MultiwithdrawResponse>, Status>
pub async fn offer( &mut self, request: impl IntoRequest<OfferRequest>, ) -> Result<Response<OfferResponse>, Status>
pub async fn open_channel_abort( &mut self, request: impl IntoRequest<OpenchannelAbortRequest>, ) -> Result<Response<OpenchannelAbortResponse>, Status>
pub async fn open_channel_bump( &mut self, request: impl IntoRequest<OpenchannelBumpRequest>, ) -> Result<Response<OpenchannelBumpResponse>, Status>
pub async fn open_channel_init( &mut self, request: impl IntoRequest<OpenchannelInitRequest>, ) -> Result<Response<OpenchannelInitResponse>, Status>
pub async fn open_channel_signed( &mut self, request: impl IntoRequest<OpenchannelSignedRequest>, ) -> Result<Response<OpenchannelSignedResponse>, Status>
pub async fn open_channel_update( &mut self, request: impl IntoRequest<OpenchannelUpdateRequest>, ) -> Result<Response<OpenchannelUpdateResponse>, Status>
pub async fn ping( &mut self, request: impl IntoRequest<PingRequest>, ) -> Result<Response<PingResponse>, Status>
pub async fn plugin( &mut self, request: impl IntoRequest<PluginRequest>, ) -> Result<Response<PluginResponse>, Status>
pub async fn rene_pay_status( &mut self, request: impl IntoRequest<RenepaystatusRequest>, ) -> Result<Response<RenepaystatusResponse>, Status>
pub async fn rene_pay( &mut self, request: impl IntoRequest<RenepayRequest>, ) -> Result<Response<RenepayResponse>, Status>
pub async fn reserve_inputs( &mut self, request: impl IntoRequest<ReserveinputsRequest>, ) -> Result<Response<ReserveinputsResponse>, Status>
pub async fn send_custom_msg( &mut self, request: impl IntoRequest<SendcustommsgRequest>, ) -> Result<Response<SendcustommsgResponse>, Status>
pub async fn send_invoice( &mut self, request: impl IntoRequest<SendinvoiceRequest>, ) -> Result<Response<SendinvoiceResponse>, Status>
pub async fn set_channel( &mut self, request: impl IntoRequest<SetchannelRequest>, ) -> Result<Response<SetchannelResponse>, Status>
pub async fn set_config( &mut self, request: impl IntoRequest<SetconfigRequest>, ) -> Result<Response<SetconfigResponse>, Status>
pub async fn set_psbt_version( &mut self, request: impl IntoRequest<SetpsbtversionRequest>, ) -> Result<Response<SetpsbtversionResponse>, Status>
pub async fn sign_invoice( &mut self, request: impl IntoRequest<SigninvoiceRequest>, ) -> Result<Response<SigninvoiceResponse>, Status>
pub async fn sign_message( &mut self, request: impl IntoRequest<SignmessageRequest>, ) -> Result<Response<SignmessageResponse>, Status>
pub async fn splice_init( &mut self, request: impl IntoRequest<SpliceInitRequest>, ) -> Result<Response<SpliceInitResponse>, Status>
pub async fn splice_signed( &mut self, request: impl IntoRequest<SpliceSignedRequest>, ) -> Result<Response<SpliceSignedResponse>, Status>
pub async fn splice_update( &mut self, request: impl IntoRequest<SpliceUpdateRequest>, ) -> Result<Response<SpliceUpdateResponse>, Status>
pub async fn dev_splice( &mut self, request: impl IntoRequest<DevspliceRequest>, ) -> Result<Response<DevspliceResponse>, Status>
pub async fn unreserve_inputs( &mut self, request: impl IntoRequest<UnreserveinputsRequest>, ) -> Result<Response<UnreserveinputsResponse>, Status>
pub async fn upgrade_wallet( &mut self, request: impl IntoRequest<UpgradewalletRequest>, ) -> Result<Response<UpgradewalletResponse>, Status>
pub async fn wait_block_height( &mut self, request: impl IntoRequest<WaitblockheightRequest>, ) -> Result<Response<WaitblockheightResponse>, Status>
pub async fn wait( &mut self, request: impl IntoRequest<WaitRequest>, ) -> Result<Response<WaitResponse>, Status>
pub async fn list_configs( &mut self, request: impl IntoRequest<ListconfigsRequest>, ) -> Result<Response<ListconfigsResponse>, Status>
pub async fn stop( &mut self, request: impl IntoRequest<StopRequest>, ) -> Result<Response<StopResponse>, Status>
pub async fn help( &mut self, request: impl IntoRequest<HelpRequest>, ) -> Result<Response<HelpResponse>, Status>
pub async fn pre_approve_keysend( &mut self, request: impl IntoRequest<PreapprovekeysendRequest>, ) -> Result<Response<PreapprovekeysendResponse>, Status>
pub async fn pre_approve_invoice( &mut self, request: impl IntoRequest<PreapproveinvoiceRequest>, ) -> Result<Response<PreapproveinvoiceResponse>, Status>
pub async fn static_backup( &mut self, request: impl IntoRequest<StaticbackupRequest>, ) -> Result<Response<StaticbackupResponse>, Status>
pub async fn bkpr_channels_apy( &mut self, request: impl IntoRequest<BkprchannelsapyRequest>, ) -> Result<Response<BkprchannelsapyResponse>, Status>
pub async fn bkpr_dump_income_csv( &mut self, request: impl IntoRequest<BkprdumpincomecsvRequest>, ) -> Result<Response<BkprdumpincomecsvResponse>, Status>
pub async fn bkpr_inspect( &mut self, request: impl IntoRequest<BkprinspectRequest>, ) -> Result<Response<BkprinspectResponse>, Status>
pub async fn bkpr_list_account_events( &mut self, request: impl IntoRequest<BkprlistaccounteventsRequest>, ) -> Result<Response<BkprlistaccounteventsResponse>, Status>
pub async fn bkpr_list_balances( &mut self, request: impl IntoRequest<BkprlistbalancesRequest>, ) -> Result<Response<BkprlistbalancesResponse>, Status>
pub async fn bkpr_list_income( &mut self, request: impl IntoRequest<BkprlistincomeRequest>, ) -> Result<Response<BkprlistincomeResponse>, Status>
pub async fn bkpr_edit_description_by_payment_id( &mut self, request: impl IntoRequest<BkpreditdescriptionbypaymentidRequest>, ) -> Result<Response<BkpreditdescriptionbypaymentidResponse>, Status>
pub async fn bkpr_edit_description_by_outpoint( &mut self, request: impl IntoRequest<BkpreditdescriptionbyoutpointRequest>, ) -> Result<Response<BkpreditdescriptionbyoutpointResponse>, Status>
pub async fn blacklist_rune( &mut self, request: impl IntoRequest<BlacklistruneRequest>, ) -> Result<Response<BlacklistruneResponse>, Status>
pub async fn check_rune( &mut self, request: impl IntoRequest<CheckruneRequest>, ) -> Result<Response<CheckruneResponse>, Status>
pub async fn create_rune( &mut self, request: impl IntoRequest<CreateruneRequest>, ) -> Result<Response<CreateruneResponse>, Status>
pub async fn show_runes( &mut self, request: impl IntoRequest<ShowrunesRequest>, ) -> Result<Response<ShowrunesResponse>, Status>
pub async fn ask_rene_unreserve( &mut self, request: impl IntoRequest<AskreneunreserveRequest>, ) -> Result<Response<AskreneunreserveResponse>, Status>
pub async fn ask_rene_list_layers( &mut self, request: impl IntoRequest<AskrenelistlayersRequest>, ) -> Result<Response<AskrenelistlayersResponse>, Status>
pub async fn ask_rene_create_layer( &mut self, request: impl IntoRequest<AskrenecreatelayerRequest>, ) -> Result<Response<AskrenecreatelayerResponse>, Status>
pub async fn ask_rene_remove_layer( &mut self, request: impl IntoRequest<AskreneremovelayerRequest>, ) -> Result<Response<AskreneremovelayerResponse>, Status>
pub async fn ask_rene_reserve( &mut self, request: impl IntoRequest<AskrenereserveRequest>, ) -> Result<Response<AskrenereserveResponse>, Status>
pub async fn ask_rene_age( &mut self, request: impl IntoRequest<AskreneageRequest>, ) -> Result<Response<AskreneageResponse>, Status>
pub async fn get_routes( &mut self, request: impl IntoRequest<GetroutesRequest>, ) -> Result<Response<GetroutesResponse>, Status>
pub async fn ask_rene_disable_node( &mut self, request: impl IntoRequest<AskrenedisablenodeRequest>, ) -> Result<Response<AskrenedisablenodeResponse>, Status>
pub async fn ask_rene_inform_channel( &mut self, request: impl IntoRequest<AskreneinformchannelRequest>, ) -> Result<Response<AskreneinformchannelResponse>, Status>
pub async fn ask_rene_create_channel( &mut self, request: impl IntoRequest<AskrenecreatechannelRequest>, ) -> Result<Response<AskrenecreatechannelResponse>, Status>
pub async fn ask_rene_update_channel( &mut self, request: impl IntoRequest<AskreneupdatechannelRequest>, ) -> Result<Response<AskreneupdatechannelResponse>, Status>
pub async fn ask_rene_bias_channel( &mut self, request: impl IntoRequest<AskrenebiaschannelRequest>, ) -> Result<Response<AskrenebiaschannelResponse>, Status>
pub async fn ask_rene_list_reservations( &mut self, request: impl IntoRequest<AskrenelistreservationsRequest>, ) -> Result<Response<AskrenelistreservationsResponse>, Status>
pub async fn inject_payment_onion( &mut self, request: impl IntoRequest<InjectpaymentonionRequest>, ) -> Result<Response<InjectpaymentonionResponse>, Status>
pub async fn inject_onion_message( &mut self, request: impl IntoRequest<InjectonionmessageRequest>, ) -> Result<Response<InjectonionmessageResponse>, Status>
pub async fn xpay( &mut self, request: impl IntoRequest<XpayRequest>, ) -> Result<Response<XpayResponse>, Status>
pub async fn subscribe_block_added( &mut self, request: impl IntoRequest<StreamBlockAddedRequest>, ) -> Result<Response<Streaming<BlockAddedNotification>>, Status>
pub async fn subscribe_channel_open_failed( &mut self, request: impl IntoRequest<StreamChannelOpenFailedRequest>, ) -> Result<Response<Streaming<ChannelOpenFailedNotification>>, Status>
pub async fn subscribe_channel_opened( &mut self, request: impl IntoRequest<StreamChannelOpenedRequest>, ) -> Result<Response<Streaming<ChannelOpenedNotification>>, Status>
pub async fn subscribe_connect( &mut self, request: impl IntoRequest<StreamConnectRequest>, ) -> Result<Response<Streaming<PeerConnectNotification>>, Status>
pub async fn subscribe_custom_msg( &mut self, request: impl IntoRequest<StreamCustomMsgRequest>, ) -> Result<Response<Streaming<CustomMsgNotification>>, Status>
pub async fn subscribe_channel_state_changed( &mut self, request: impl IntoRequest<StreamChannelStateChangedRequest>, ) -> Result<Response<Streaming<ChannelStateChangedNotification>>, Status>
Trait Implementations§
Source§impl<T> Clone for NodeClient<T>where
T: Clone,
impl<T> Clone for NodeClient<T>where
T: Clone,
Source§fn clone(&self) -> NodeClient<T>
fn clone(&self) -> NodeClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for NodeClient<T>
impl<T> RefUnwindSafe for NodeClient<T>where
T: RefUnwindSafe,
impl<T> Send for NodeClient<T>where
T: Send,
impl<T> Sync for NodeClient<T>where
T: Sync,
impl<T> Unpin for NodeClient<T>where
T: Unpin,
impl<T> UnwindSafe for NodeClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request