Skip to main content

WalletClient

Struct WalletClient 

Source
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>

Source

pub fn new(substrate: W) -> Self

Create a new WalletClient wrapping the given wire substrate.

Trait Implementations§

Source§

impl<W: WalletWire> WalletInterface for WalletClient<W>

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.