Struct gl_client::signer::model::cln::node_client::NodeClient

source ·
pub struct NodeClient<T> { /* private fields */ }

Implementations§

source§

impl NodeClient<Channel>

source

pub async fn connect<D>(dst: D) -> Result<NodeClient<Channel>, Error>
where D: TryInto<Endpoint>, <D as TryInto<Endpoint>>::Error: Into<Box<dyn Error + Sync + Send>>,

Attempt to create a new client by connecting to a given endpoint.

source§

impl<T> NodeClient<T>

source

pub fn new(inner: T) -> NodeClient<T>

source

pub fn with_origin(inner: T, origin: Uri) -> NodeClient<T>

source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> NodeClient<InterceptedService<T, F>>

source

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.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> NodeClient<T>

Enable decompressing responses.

source

pub async fn getinfo( &mut self, request: impl IntoRequest<GetinfoRequest>, ) -> Result<Response<GetinfoResponse>, Status>

source

pub async fn list_peers( &mut self, request: impl IntoRequest<ListpeersRequest>, ) -> Result<Response<ListpeersResponse>, Status>

source

pub async fn list_funds( &mut self, request: impl IntoRequest<ListfundsRequest>, ) -> Result<Response<ListfundsResponse>, Status>

source

pub async fn send_pay( &mut self, request: impl IntoRequest<SendpayRequest>, ) -> Result<Response<SendpayResponse>, Status>

source

pub async fn list_channels( &mut self, request: impl IntoRequest<ListchannelsRequest>, ) -> Result<Response<ListchannelsResponse>, Status>

source

pub async fn add_gossip( &mut self, request: impl IntoRequest<AddgossipRequest>, ) -> Result<Response<AddgossipResponse>, Status>

source

pub async fn auto_clean_invoice( &mut self, request: impl IntoRequest<AutocleaninvoiceRequest>, ) -> Result<Response<AutocleaninvoiceResponse>, Status>

source

pub async fn check_message( &mut self, request: impl IntoRequest<CheckmessageRequest>, ) -> Result<Response<CheckmessageResponse>, Status>

source

pub async fn close( &mut self, request: impl IntoRequest<CloseRequest>, ) -> Result<Response<CloseResponse>, Status>

source

pub async fn connect_peer( &mut self, request: impl IntoRequest<ConnectRequest>, ) -> Result<Response<ConnectResponse>, Status>

source

pub async fn create_invoice( &mut self, request: impl IntoRequest<CreateinvoiceRequest>, ) -> Result<Response<CreateinvoiceResponse>, Status>

source

pub async fn datastore( &mut self, request: impl IntoRequest<DatastoreRequest>, ) -> Result<Response<DatastoreResponse>, Status>

source

pub async fn datastore_usage( &mut self, request: impl IntoRequest<DatastoreusageRequest>, ) -> Result<Response<DatastoreusageResponse>, Status>

source

pub async fn create_onion( &mut self, request: impl IntoRequest<CreateonionRequest>, ) -> Result<Response<CreateonionResponse>, Status>

source

pub async fn del_datastore( &mut self, request: impl IntoRequest<DeldatastoreRequest>, ) -> Result<Response<DeldatastoreResponse>, Status>

source

pub async fn del_expired_invoice( &mut self, request: impl IntoRequest<DelexpiredinvoiceRequest>, ) -> Result<Response<DelexpiredinvoiceResponse>, Status>

source

pub async fn del_invoice( &mut self, request: impl IntoRequest<DelinvoiceRequest>, ) -> Result<Response<DelinvoiceResponse>, Status>

source

pub async fn invoice( &mut self, request: impl IntoRequest<InvoiceRequest>, ) -> Result<Response<InvoiceResponse>, Status>

source

pub async fn list_datastore( &mut self, request: impl IntoRequest<ListdatastoreRequest>, ) -> Result<Response<ListdatastoreResponse>, Status>

source

pub async fn list_invoices( &mut self, request: impl IntoRequest<ListinvoicesRequest>, ) -> Result<Response<ListinvoicesResponse>, Status>

source

pub async fn send_onion( &mut self, request: impl IntoRequest<SendonionRequest>, ) -> Result<Response<SendonionResponse>, Status>

source

pub async fn list_send_pays( &mut self, request: impl IntoRequest<ListsendpaysRequest>, ) -> Result<Response<ListsendpaysResponse>, Status>

source

pub async fn list_transactions( &mut self, request: impl IntoRequest<ListtransactionsRequest>, ) -> Result<Response<ListtransactionsResponse>, Status>

source

pub async fn pay( &mut self, request: impl IntoRequest<PayRequest>, ) -> Result<Response<PayResponse>, Status>

source

pub async fn list_nodes( &mut self, request: impl IntoRequest<ListnodesRequest>, ) -> Result<Response<ListnodesResponse>, Status>

source

pub async fn wait_any_invoice( &mut self, request: impl IntoRequest<WaitanyinvoiceRequest>, ) -> Result<Response<WaitanyinvoiceResponse>, Status>

source

pub async fn wait_invoice( &mut self, request: impl IntoRequest<WaitinvoiceRequest>, ) -> Result<Response<WaitinvoiceResponse>, Status>

source

pub async fn wait_send_pay( &mut self, request: impl IntoRequest<WaitsendpayRequest>, ) -> Result<Response<WaitsendpayResponse>, Status>

source

pub async fn new_addr( &mut self, request: impl IntoRequest<NewaddrRequest>, ) -> Result<Response<NewaddrResponse>, Status>

source

pub async fn withdraw( &mut self, request: impl IntoRequest<WithdrawRequest>, ) -> Result<Response<WithdrawResponse>, Status>

source

pub async fn key_send( &mut self, request: impl IntoRequest<KeysendRequest>, ) -> Result<Response<KeysendResponse>, Status>

source

pub async fn fund_psbt( &mut self, request: impl IntoRequest<FundpsbtRequest>, ) -> Result<Response<FundpsbtResponse>, Status>

source

pub async fn send_psbt( &mut self, request: impl IntoRequest<SendpsbtRequest>, ) -> Result<Response<SendpsbtResponse>, Status>

source

pub async fn sign_psbt( &mut self, request: impl IntoRequest<SignpsbtRequest>, ) -> Result<Response<SignpsbtResponse>, Status>

source

pub async fn utxo_psbt( &mut self, request: impl IntoRequest<UtxopsbtRequest>, ) -> Result<Response<UtxopsbtResponse>, Status>

source

pub async fn tx_discard( &mut self, request: impl IntoRequest<TxdiscardRequest>, ) -> Result<Response<TxdiscardResponse>, Status>

source

pub async fn tx_prepare( &mut self, request: impl IntoRequest<TxprepareRequest>, ) -> Result<Response<TxprepareResponse>, Status>

source

pub async fn tx_send( &mut self, request: impl IntoRequest<TxsendRequest>, ) -> Result<Response<TxsendResponse>, Status>

source

pub async fn list_peer_channels( &mut self, request: impl IntoRequest<ListpeerchannelsRequest>, ) -> Result<Response<ListpeerchannelsResponse>, Status>

source

pub async fn list_closed_channels( &mut self, request: impl IntoRequest<ListclosedchannelsRequest>, ) -> Result<Response<ListclosedchannelsResponse>, Status>

source

pub async fn decode_pay( &mut self, request: impl IntoRequest<DecodepayRequest>, ) -> Result<Response<DecodepayResponse>, Status>

source

pub async fn decode( &mut self, request: impl IntoRequest<DecodeRequest>, ) -> Result<Response<DecodeResponse>, Status>

source

pub async fn disconnect( &mut self, request: impl IntoRequest<DisconnectRequest>, ) -> Result<Response<DisconnectResponse>, Status>

source

pub async fn feerates( &mut self, request: impl IntoRequest<FeeratesRequest>, ) -> Result<Response<FeeratesResponse>, Status>

source

pub async fn fetch_invoice( &mut self, request: impl IntoRequest<FetchinvoiceRequest>, ) -> Result<Response<FetchinvoiceResponse>, Status>

source

pub async fn fund_channel( &mut self, request: impl IntoRequest<FundchannelRequest>, ) -> Result<Response<FundchannelResponse>, Status>

source

pub async fn get_route( &mut self, request: impl IntoRequest<GetrouteRequest>, ) -> Result<Response<GetrouteResponse>, Status>

source

pub async fn list_forwards( &mut self, request: impl IntoRequest<ListforwardsRequest>, ) -> Result<Response<ListforwardsResponse>, Status>

source

pub async fn list_offers( &mut self, request: impl IntoRequest<ListoffersRequest>, ) -> Result<Response<ListoffersResponse>, Status>

source

pub async fn list_pays( &mut self, request: impl IntoRequest<ListpaysRequest>, ) -> Result<Response<ListpaysResponse>, Status>

source

pub async fn list_htlcs( &mut self, request: impl IntoRequest<ListhtlcsRequest>, ) -> Result<Response<ListhtlcsResponse>, Status>

source

pub async fn offer( &mut self, request: impl IntoRequest<OfferRequest>, ) -> Result<Response<OfferResponse>, Status>

source

pub async fn ping( &mut self, request: impl IntoRequest<PingRequest>, ) -> Result<Response<PingResponse>, Status>

source

pub async fn send_custom_msg( &mut self, request: impl IntoRequest<SendcustommsgRequest>, ) -> Result<Response<SendcustommsgResponse>, Status>

source

pub async fn set_channel( &mut self, request: impl IntoRequest<SetchannelRequest>, ) -> Result<Response<SetchannelResponse>, Status>

source

pub async fn sign_invoice( &mut self, request: impl IntoRequest<SigninvoiceRequest>, ) -> Result<Response<SigninvoiceResponse>, Status>

source

pub async fn sign_message( &mut self, request: impl IntoRequest<SignmessageRequest>, ) -> Result<Response<SignmessageResponse>, Status>

source

pub async fn wait_block_height( &mut self, request: impl IntoRequest<WaitblockheightRequest>, ) -> Result<Response<WaitblockheightResponse>, Status>

source

pub async fn wait( &mut self, request: impl IntoRequest<WaitRequest>, ) -> Result<Response<WaitResponse>, Status>

source

pub async fn stop( &mut self, request: impl IntoRequest<StopRequest>, ) -> Result<Response<StopResponse>, Status>

source

pub async fn pre_approve_keysend( &mut self, request: impl IntoRequest<PreapprovekeysendRequest>, ) -> Result<Response<PreapprovekeysendResponse>, Status>

source

pub async fn pre_approve_invoice( &mut self, request: impl IntoRequest<PreapproveinvoiceRequest>, ) -> Result<Response<PreapproveinvoiceResponse>, Status>

source

pub async fn static_backup( &mut self, request: impl IntoRequest<StaticbackupRequest>, ) -> Result<Response<StaticbackupResponse>, Status>

source

pub async fn bkpr_list_income( &mut self, request: impl IntoRequest<BkprlistincomeRequest>, ) -> Result<Response<BkprlistincomeResponse>, Status>

Trait Implementations§

source§

impl<T> Clone for NodeClient<T>
where T: Clone,

source§

fn clone(&self) -> NodeClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for NodeClient<T>
where T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto 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<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Any for T
where T: Any,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

source§

fn type_name(&self) -> &'static str

source§

impl<T> AnySync for T
where T: Any + Send + Sync,

source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

source§

impl<T> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

source§

fn type_name(&self) -> &'static str

Gets the type name of self
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for T
where T: AsAny + ?Sized,

source§

fn is<T>(&self) -> bool
where T: AsAny,

Returns true if the boxed type is the same as T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>
where T: AsAny,

Forward to the method defined on the type Any.
source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: AsAny,

Forward to the method defined on the type Any.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more