pub struct SparkServiceClient<T> { /* private fields */ }
Implementations§
Source§impl<T> SparkServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> SparkServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SparkServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
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) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn generate_deposit_address( &mut self, request: impl IntoRequest<GenerateDepositAddressRequest>, ) -> Result<Response<GenerateDepositAddressResponse>, Status>
pub async fn start_tree_creation( &mut self, request: impl IntoRequest<StartTreeCreationRequest>, ) -> Result<Response<StartTreeCreationResponse>, Status>
pub async fn finalize_node_signatures( &mut self, request: impl IntoRequest<FinalizeNodeSignaturesRequest>, ) -> Result<Response<FinalizeNodeSignaturesResponse>, Status>
pub async fn start_send_transfer( &mut self, request: impl IntoRequest<StartSendTransferRequest>, ) -> Result<Response<StartSendTransferResponse>, Status>
pub async fn complete_send_transfer( &mut self, request: impl IntoRequest<CompleteSendTransferRequest>, ) -> Result<Response<CompleteSendTransferResponse>, Status>
pub async fn query_pending_transfers( &mut self, request: impl IntoRequest<QueryPendingTransfersRequest>, ) -> Result<Response<QueryPendingTransfersResponse>, Status>
pub async fn query_all_transfers( &mut self, request: impl IntoRequest<QueryAllTransfersRequest>, ) -> Result<Response<QueryAllTransfersResponse>, Status>
pub async fn claim_transfer_tweak_keys( &mut self, request: impl IntoRequest<ClaimTransferTweakKeysRequest>, ) -> Result<Response<()>, Status>
pub async fn claim_transfer_sign_refunds( &mut self, request: impl IntoRequest<ClaimTransferSignRefundsRequest>, ) -> Result<Response<ClaimTransferSignRefundsResponse>, Status>
pub async fn aggregate_nodes( &mut self, request: impl IntoRequest<AggregateNodesRequest>, ) -> Result<Response<AggregateNodesResponse>, Status>
pub async fn get_signing_commitments( &mut self, request: impl IntoRequest<GetSigningCommitmentsRequest>, ) -> Result<Response<GetSigningCommitmentsResponse>, Status>
pub async fn cooperative_exit( &mut self, request: impl IntoRequest<CooperativeExitRequest>, ) -> Result<Response<CooperativeExitResponse>, Status>
pub async fn initiate_preimage_swap( &mut self, request: impl IntoRequest<InitiatePreimageSwapRequest>, ) -> Result<Response<InitiatePreimageSwapResponse>, Status>
pub async fn provide_preimage( &mut self, request: impl IntoRequest<ProvidePreimageRequest>, ) -> Result<Response<ProvidePreimageResponse>, Status>
Sourcepub async fn start_leaf_swap(
&mut self,
request: impl IntoRequest<StartSendTransferRequest>,
) -> Result<Response<StartSendTransferResponse>, Status>
pub async fn start_leaf_swap( &mut self, request: impl IntoRequest<StartSendTransferRequest>, ) -> Result<Response<StartSendTransferResponse>, Status>
This is the exact same as start_send_transfer, but expresses to the SO this transfer is specifically for a leaf swap.
Sourcepub async fn leaf_swap(
&mut self,
request: impl IntoRequest<CounterLeafSwapRequest>,
) -> Result<Response<CounterLeafSwapResponse>, Status>
👎Deprecated
pub async fn leaf_swap( &mut self, request: impl IntoRequest<CounterLeafSwapRequest>, ) -> Result<Response<CounterLeafSwapResponse>, Status>
This is deprecated, please use counter_leaf_swap instead.
Sourcepub async fn counter_leaf_swap(
&mut self,
request: impl IntoRequest<CounterLeafSwapRequest>,
) -> Result<Response<CounterLeafSwapResponse>, Status>
pub async fn counter_leaf_swap( &mut self, request: impl IntoRequest<CounterLeafSwapRequest>, ) -> Result<Response<CounterLeafSwapResponse>, Status>
This is the exact same as start_leaf_swap, but signs with an adaptor public key after a counterparty has begun the swap via start_leaf_swap.
pub async fn refresh_timelock( &mut self, request: impl IntoRequest<RefreshTimelockRequest>, ) -> Result<Response<RefreshTimelockResponse>, Status>
pub async fn extend_leaf( &mut self, request: impl IntoRequest<ExtendLeafRequest>, ) -> Result<Response<ExtendLeafResponse>, Status>
pub async fn prepare_tree_address( &mut self, request: impl IntoRequest<PrepareTreeAddressRequest>, ) -> Result<Response<PrepareTreeAddressResponse>, Status>
pub async fn create_tree( &mut self, request: impl IntoRequest<CreateTreeRequest>, ) -> Result<Response<CreateTreeResponse>, Status>
pub async fn get_signing_operator_list( &mut self, request: impl IntoRequest<()>, ) -> Result<Response<GetSigningOperatorListResponse>, Status>
pub async fn query_nodes( &mut self, request: impl IntoRequest<QueryNodesRequest>, ) -> Result<Response<QueryNodesResponse>, Status>
pub async fn query_balance( &mut self, request: impl IntoRequest<QueryBalanceRequest>, ) -> Result<Response<QueryBalanceResponse>, Status>
pub async fn query_user_signed_refunds( &mut self, request: impl IntoRequest<QueryUserSignedRefundsRequest>, ) -> Result<Response<QueryUserSignedRefundsResponse>, Status>
Sourcepub async fn start_token_transaction(
&mut self,
request: impl IntoRequest<StartTokenTransactionRequest>,
) -> Result<Response<StartTokenTransactionResponse>, Status>
pub async fn start_token_transaction( &mut self, request: impl IntoRequest<StartTokenTransactionRequest>, ) -> Result<Response<StartTokenTransactionResponse>, Status>
Token RPCs
pub async fn sign_token_transaction( &mut self, request: impl IntoRequest<SignTokenTransactionRequest>, ) -> Result<Response<SignTokenTransactionResponse>, Status>
pub async fn finalize_token_transaction( &mut self, request: impl IntoRequest<FinalizeTokenTransactionRequest>, ) -> Result<Response<()>, Status>
pub async fn freeze_tokens( &mut self, request: impl IntoRequest<FreezeTokensRequest>, ) -> Result<Response<FreezeTokensResponse>, Status>
pub async fn get_owned_token_leaves( &mut self, request: impl IntoRequest<GetOwnedTokenLeavesRequest>, ) -> Result<Response<GetOwnedTokenLeavesResponse>, Status>
pub async fn query_token_transactions( &mut self, request: impl IntoRequest<QueryTokenTransactionsRequest>, ) -> Result<Response<QueryTokenTransactionsResponse>, Status>
pub async fn cancel_signed_token_transaction( &mut self, request: impl IntoRequest<CancelSignedTokenTransactionRequest>, ) -> Result<Response<()>, Status>
pub async fn return_lightning_payment( &mut self, request: impl IntoRequest<ReturnLightningPaymentRequest>, ) -> Result<Response<()>, Status>
pub async fn cancel_send_transfer( &mut self, request: impl IntoRequest<CancelSendTransferRequest>, ) -> Result<Response<CancelSendTransferResponse>, Status>
pub async fn query_unused_deposit_addresses( &mut self, request: impl IntoRequest<QueryUnusedDepositAddressesRequest>, ) -> Result<Response<QueryUnusedDepositAddressesResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for SparkServiceClient<T>
impl<T: Clone> Clone for SparkServiceClient<T>
Source§fn clone(&self) -> SparkServiceClient<T>
fn clone(&self) -> SparkServiceClient<T>
Returns a copy 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 SparkServiceClient<T>
impl<T> RefUnwindSafe for SparkServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for SparkServiceClient<T>where
T: Send,
impl<T> Sync for SparkServiceClient<T>where
T: Sync,
impl<T> Unpin for SparkServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for SparkServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
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> 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> 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