pub struct Pairwise {}
Implementations§
Source§impl Pairwise
impl Pairwise
pub fn does_exist( wallet_handle: IndyHandle, their_did: &str, ) -> Result<bool, ErrorCode>
Sourcepub fn does_exist_timeout(
wallet_handle: IndyHandle,
their_did: &str,
timeout: Duration,
) -> Result<bool, ErrorCode>
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
Sourcepub fn does_exist_async<F>(
wallet_handle: IndyHandle,
their_did: &str,
closure: F,
) -> ErrorCode
pub fn does_exist_async<F>( wallet_handle: IndyHandle, their_did: &str, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn create( wallet_handle: IndyHandle, their_did: &str, my_did: &str, metadata: Option<&str>, ) -> Result<(), ErrorCode>
Sourcepub fn create_timeout(
wallet_handle: IndyHandle,
their_did: &str,
my_did: &str,
metadata: Option<&str>,
timeout: Duration,
) -> Result<(), ErrorCode>
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
Sourcepub fn create_async<F>(
wallet_handle: IndyHandle,
their_did: &str,
my_did: &str,
metadata: Option<&str>,
closure: F,
) -> ErrorCode
pub fn create_async<F>( wallet_handle: IndyHandle, their_did: &str, my_did: &str, metadata: Option<&str>, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn list(wallet_handle: IndyHandle) -> Result<String, ErrorCode>
Sourcepub fn list_timeout(
wallet_handle: IndyHandle,
timeout: Duration,
) -> Result<String, ErrorCode>
pub fn list_timeout( wallet_handle: IndyHandle, timeout: Duration, ) -> Result<String, ErrorCode>
timeout
- the maximum time this function waits for a response
Sourcepub fn list_async<F>(wallet_handle: IndyHandle, closure: F) -> ErrorCode
pub fn list_async<F>(wallet_handle: IndyHandle, closure: F) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn get( wallet_handle: IndyHandle, their_did: &str, ) -> Result<String, ErrorCode>
Sourcepub fn get_timeout(
wallet_handle: IndyHandle,
their_did: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn get_async<F>(
wallet_handle: IndyHandle,
their_did: &str,
closure: F,
) -> ErrorCode
pub fn get_async<F>( wallet_handle: IndyHandle, their_did: &str, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn set_metadata( wallet_handle: IndyHandle, their_did: &str, metadata: Option<&str>, ) -> Result<(), ErrorCode>
Sourcepub fn set_metadata_timeout(
wallet_handle: IndyHandle,
their_did: &str,
metadata: Option<&str>,
timeout: Duration,
) -> Result<(), ErrorCode>
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
Sourcepub fn set_metadata_async<F>(
wallet_handle: IndyHandle,
their_did: &str,
metadata: Option<&str>,
closure: F,
) -> ErrorCode
pub fn set_metadata_async<F>( wallet_handle: IndyHandle, their_did: &str, metadata: Option<&str>, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
Auto Trait Implementations§
impl Freeze for Pairwise
impl RefUnwindSafe for Pairwise
impl Send for Pairwise
impl Sync for Pairwise
impl Unpin for Pairwise
impl UnwindSafe for Pairwise
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