pub struct WalletClient<W: WalletWire> { /* private fields */ }Expand description
Client that validates all arguments before delegating to wire transport.
Implementations§
Source§impl<W: WalletWire> WalletClient<W>
impl<W: WalletWire> WalletClient<W>
Trait Implementations§
Source§impl<W: WalletWire> WalletInterface for WalletClient<W>
impl<W: WalletWire> WalletInterface for WalletClient<W>
fn create_action<'life0, 'life1, 'async_trait>(
&'life0 self,
args: CreateActionArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<CreateActionResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_action<'life0, 'life1, 'async_trait>(
&'life0 self,
args: SignActionArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<SignActionResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn abort_action<'life0, 'life1, 'async_trait>(
&'life0 self,
args: AbortActionArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<AbortActionResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_actions<'life0, 'life1, 'async_trait>(
&'life0 self,
args: ListActionsArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ListActionsResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn internalize_action<'life0, 'life1, 'async_trait>(
&'life0 self,
args: InternalizeActionArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<InternalizeActionResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_outputs<'life0, 'life1, 'async_trait>(
&'life0 self,
args: ListOutputsArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ListOutputsResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn relinquish_output<'life0, 'life1, 'async_trait>(
&'life0 self,
args: RelinquishOutputArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<RelinquishOutputResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
args: GetPublicKeyArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reveal_counterparty_key_linkage<'life0, 'life1, 'async_trait>(
&'life0 self,
args: RevealCounterpartyKeyLinkageArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<RevealCounterpartyKeyLinkageResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reveal_specific_key_linkage<'life0, 'life1, 'async_trait>(
&'life0 self,
args: RevealSpecificKeyLinkageArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<RevealSpecificKeyLinkageResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encrypt<'life0, 'life1, 'async_trait>(
&'life0 self,
args: EncryptArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<EncryptResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn decrypt<'life0, 'life1, 'async_trait>(
&'life0 self,
args: DecryptArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<DecryptResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_hmac<'life0, 'life1, 'async_trait>(
&'life0 self,
args: CreateHmacArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<CreateHmacResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn verify_hmac<'life0, 'life1, 'async_trait>(
&'life0 self,
args: VerifyHmacArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<VerifyHmacResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
args: CreateSignatureArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<CreateSignatureResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn verify_signature<'life0, 'life1, 'async_trait>(
&'life0 self,
args: VerifySignatureArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<VerifySignatureResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn acquire_certificate<'life0, 'life1, 'async_trait>(
&'life0 self,
args: AcquireCertificateArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Certificate, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_certificates<'life0, 'life1, 'async_trait>(
&'life0 self,
args: ListCertificatesArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ListCertificatesResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn prove_certificate<'life0, 'life1, 'async_trait>(
&'life0 self,
args: ProveCertificateArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<ProveCertificateResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn relinquish_certificate<'life0, 'life1, 'async_trait>(
&'life0 self,
args: RelinquishCertificateArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<RelinquishCertificateResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn discover_by_identity_key<'life0, 'life1, 'async_trait>(
&'life0 self,
args: DiscoverByIdentityKeyArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<DiscoverCertificatesResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn discover_by_attributes<'life0, 'life1, 'async_trait>(
&'life0 self,
args: DiscoverByAttributesArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<DiscoverCertificatesResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_authenticated<'life0, 'life1, 'async_trait>(
&'life0 self,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<AuthenticatedResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wait_for_authentication<'life0, 'life1, 'async_trait>(
&'life0 self,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<AuthenticatedResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_height<'life0, 'life1, 'async_trait>(
&'life0 self,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GetHeightResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_header_for_height<'life0, 'life1, 'async_trait>(
&'life0 self,
args: GetHeaderArgs,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GetHeaderResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_network<'life0, 'life1, 'async_trait>(
&'life0 self,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GetNetworkResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_version<'life0, 'life1, 'async_trait>(
&'life0 self,
originator: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<GetVersionResult, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<W> Freeze for WalletClient<W>where
W: Freeze,
impl<W> RefUnwindSafe for WalletClient<W>where
W: RefUnwindSafe,
impl<W> Send for WalletClient<W>
impl<W> Sync for WalletClient<W>
impl<W> Unpin for WalletClient<W>where
W: Unpin,
impl<W> UnsafeUnpin for WalletClient<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WalletClient<W>where
W: 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