Struct Pairwise

Source
pub struct Pairwise {}

Implementations§

Source§

impl Pairwise

Source

pub fn does_exist( wallet_handle: IndyHandle, their_did: &str, ) -> Result<bool, ErrorCode>

Source

pub fn does_exist_timeout( wallet_handle: IndyHandle, their_did: &str, timeout: Duration, ) -> Result<bool, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn does_exist_async<F>( wallet_handle: IndyHandle, their_did: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, bool) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create( wallet_handle: IndyHandle, their_did: &str, my_did: &str, metadata: Option<&str>, ) -> Result<(), ErrorCode>

Source

pub fn create_timeout( wallet_handle: IndyHandle, their_did: &str, my_did: &str, metadata: Option<&str>, timeout: Duration, ) -> Result<(), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_async<F>( wallet_handle: IndyHandle, their_did: &str, my_did: &str, metadata: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn list(wallet_handle: IndyHandle) -> Result<String, ErrorCode>

Source

pub fn list_timeout( wallet_handle: IndyHandle, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn list_async<F>(wallet_handle: IndyHandle, closure: F) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn get( wallet_handle: IndyHandle, their_did: &str, ) -> Result<String, ErrorCode>

Source

pub fn get_timeout( wallet_handle: IndyHandle, their_did: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn get_async<F>( wallet_handle: IndyHandle, their_did: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn set_metadata( wallet_handle: IndyHandle, their_did: &str, metadata: Option<&str>, ) -> Result<(), ErrorCode>

Source

pub fn set_metadata_timeout( wallet_handle: IndyHandle, their_did: &str, metadata: Option<&str>, timeout: Duration, ) -> Result<(), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn set_metadata_async<F>( wallet_handle: IndyHandle, their_did: &str, metadata: Option<&str>, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result

Auto Trait Implementations§

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.