pub struct GuardSignerServiceClient<T> { /* private fields */ }Expand description
Client for this service.
Generic over T: ClientTransport. For gRPC (HTTP/2), use
Http2Connection — it has honest poll_ready and composes with
tower::balance for multi-connection load balancing. For Connect
over HTTP/1.1 (or unknown protocol), use HttpClient.
§Working with the response
Unary calls return UnaryResponse<OwnedView<FooView>>.
view() borrows the response
message, so field access is zero-copy:
let resp = client.create_guard_signer_wallet(request).await?;
let name: &str = resp.view().name; // borrow into the response bufferIf you need the owned struct (e.g. to store or pass by value), use
into_owned():
let owned = client.create_guard_signer_wallet(request).await?.into_owned();into_view() keeps the
zero-copy decoded body (an OwnedView) without copying; field access on it
goes through .reborrow(). Streaming responses yield one
StreamMessage per received message from
.message().await — read fields zero-copy through the generated accessor
methods (msg.name()) or .view(), or convert with .to_owned_message().
Implementations§
Source§impl<T> GuardSignerServiceClient<T>
impl<T> GuardSignerServiceClient<T>
Sourcepub fn new(transport: T, config: ClientConfig) -> Self
pub fn new(transport: T, config: ClientConfig) -> Self
Create a new client with the given transport and configuration.
Sourcepub fn config(&self) -> &ClientConfig
pub fn config(&self) -> &ClientConfig
Get the client configuration.
Sourcepub fn config_mut(&mut self) -> &mut ClientConfig
pub fn config_mut(&mut self) -> &mut ClientConfig
Get a mutable reference to the client configuration.
Sourcepub async fn create_guard_signer_wallet(
&self,
request: CreateGuardSignerWalletRequest,
) -> Result<UnaryResponse<OwnedView<CreateGuardSignerWalletResponseView<'static>>>, ConnectError>
pub async fn create_guard_signer_wallet( &self, request: CreateGuardSignerWalletRequest, ) -> Result<UnaryResponse<OwnedView<CreateGuardSignerWalletResponseView<'static>>>, ConnectError>
Call the CreateGuardSignerWallet RPC. Sends a request to /chain.guard.v1.GuardSignerService/CreateGuardSignerWallet.
Sourcepub async fn create_guard_signer_wallet_with_options(
&self,
request: CreateGuardSignerWalletRequest,
options: CallOptions,
) -> Result<UnaryResponse<OwnedView<CreateGuardSignerWalletResponseView<'static>>>, ConnectError>
pub async fn create_guard_signer_wallet_with_options( &self, request: CreateGuardSignerWalletRequest, options: CallOptions, ) -> Result<UnaryResponse<OwnedView<CreateGuardSignerWalletResponseView<'static>>>, ConnectError>
Call the CreateGuardSignerWallet RPC with explicit per-call options. Options override ClientConfig defaults.
Sourcepub async fn get_guard_signer_status(
&self,
request: GetGuardSignerStatusRequest,
) -> Result<UnaryResponse<OwnedView<GetGuardSignerStatusResponseView<'static>>>, ConnectError>
pub async fn get_guard_signer_status( &self, request: GetGuardSignerStatusRequest, ) -> Result<UnaryResponse<OwnedView<GetGuardSignerStatusResponseView<'static>>>, ConnectError>
Call the GetGuardSignerStatus RPC. Sends a request to /chain.guard.v1.GuardSignerService/GetGuardSignerStatus.
Sourcepub async fn get_guard_signer_status_with_options(
&self,
request: GetGuardSignerStatusRequest,
options: CallOptions,
) -> Result<UnaryResponse<OwnedView<GetGuardSignerStatusResponseView<'static>>>, ConnectError>
pub async fn get_guard_signer_status_with_options( &self, request: GetGuardSignerStatusRequest, options: CallOptions, ) -> Result<UnaryResponse<OwnedView<GetGuardSignerStatusResponseView<'static>>>, ConnectError>
Call the GetGuardSignerStatus RPC with explicit per-call options. Options override ClientConfig defaults.
Sourcepub async fn sign_protected_action(
&self,
request: SignProtectedActionRequest,
) -> Result<UnaryResponse<OwnedView<SignProtectedActionResponseView<'static>>>, ConnectError>
pub async fn sign_protected_action( &self, request: SignProtectedActionRequest, ) -> Result<UnaryResponse<OwnedView<SignProtectedActionResponseView<'static>>>, ConnectError>
Call the SignProtectedAction RPC. Sends a request to /chain.guard.v1.GuardSignerService/SignProtectedAction.
Sourcepub async fn sign_protected_action_with_options(
&self,
request: SignProtectedActionRequest,
options: CallOptions,
) -> Result<UnaryResponse<OwnedView<SignProtectedActionResponseView<'static>>>, ConnectError>
pub async fn sign_protected_action_with_options( &self, request: SignProtectedActionRequest, options: CallOptions, ) -> Result<UnaryResponse<OwnedView<SignProtectedActionResponseView<'static>>>, ConnectError>
Call the SignProtectedAction RPC with explicit per-call options. Options override ClientConfig defaults.
Sourcepub async fn batch_sign_protected_actions(
&self,
request: BatchSignProtectedActionsRequest,
) -> Result<UnaryResponse<OwnedView<BatchSignProtectedActionsResponseView<'static>>>, ConnectError>
pub async fn batch_sign_protected_actions( &self, request: BatchSignProtectedActionsRequest, ) -> Result<UnaryResponse<OwnedView<BatchSignProtectedActionsResponseView<'static>>>, ConnectError>
Call the BatchSignProtectedActions RPC. Sends a request to /chain.guard.v1.GuardSignerService/BatchSignProtectedActions.
Sourcepub async fn batch_sign_protected_actions_with_options(
&self,
request: BatchSignProtectedActionsRequest,
options: CallOptions,
) -> Result<UnaryResponse<OwnedView<BatchSignProtectedActionsResponseView<'static>>>, ConnectError>
pub async fn batch_sign_protected_actions_with_options( &self, request: BatchSignProtectedActionsRequest, options: CallOptions, ) -> Result<UnaryResponse<OwnedView<BatchSignProtectedActionsResponseView<'static>>>, ConnectError>
Call the BatchSignProtectedActions RPC with explicit per-call options. Options override ClientConfig defaults.
Sourcepub async fn rotate_guard_signer_wallet(
&self,
request: RotateGuardSignerWalletRequest,
) -> Result<UnaryResponse<OwnedView<RotateGuardSignerWalletResponseView<'static>>>, ConnectError>
pub async fn rotate_guard_signer_wallet( &self, request: RotateGuardSignerWalletRequest, ) -> Result<UnaryResponse<OwnedView<RotateGuardSignerWalletResponseView<'static>>>, ConnectError>
Call the RotateGuardSignerWallet RPC. Sends a request to /chain.guard.v1.GuardSignerService/RotateGuardSignerWallet.
Sourcepub async fn rotate_guard_signer_wallet_with_options(
&self,
request: RotateGuardSignerWalletRequest,
options: CallOptions,
) -> Result<UnaryResponse<OwnedView<RotateGuardSignerWalletResponseView<'static>>>, ConnectError>
pub async fn rotate_guard_signer_wallet_with_options( &self, request: RotateGuardSignerWalletRequest, options: CallOptions, ) -> Result<UnaryResponse<OwnedView<RotateGuardSignerWalletResponseView<'static>>>, ConnectError>
Call the RotateGuardSignerWallet RPC with explicit per-call options. Options override ClientConfig defaults.
Sourcepub async fn export_guard_signer_wallet(
&self,
request: ExportGuardSignerWalletRequest,
) -> Result<UnaryResponse<OwnedView<ExportGuardSignerWalletResponseView<'static>>>, ConnectError>
pub async fn export_guard_signer_wallet( &self, request: ExportGuardSignerWalletRequest, ) -> Result<UnaryResponse<OwnedView<ExportGuardSignerWalletResponseView<'static>>>, ConnectError>
Call the ExportGuardSignerWallet RPC. Sends a request to /chain.guard.v1.GuardSignerService/ExportGuardSignerWallet.
Sourcepub async fn export_guard_signer_wallet_with_options(
&self,
request: ExportGuardSignerWalletRequest,
options: CallOptions,
) -> Result<UnaryResponse<OwnedView<ExportGuardSignerWalletResponseView<'static>>>, ConnectError>
pub async fn export_guard_signer_wallet_with_options( &self, request: ExportGuardSignerWalletRequest, options: CallOptions, ) -> Result<UnaryResponse<OwnedView<ExportGuardSignerWalletResponseView<'static>>>, ConnectError>
Call the ExportGuardSignerWallet RPC with explicit per-call options. Options override ClientConfig defaults.
Trait Implementations§
Source§impl<T: Clone> Clone for GuardSignerServiceClient<T>
impl<T: Clone> Clone for GuardSignerServiceClient<T>
Source§fn clone(&self) -> GuardSignerServiceClient<T>
fn clone(&self) -> GuardSignerServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more