pub struct Pairwise {}
Implementations
sourceimpl 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: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, bool) + Send,
pub fn does_exist_async<F: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, bool) + Send,
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: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
my_did: &str,
metadata: Option<&str>,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode) + Send,
pub fn create_async<F: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
my_did: &str,
metadata: Option<&str>,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode) + Send,
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: 'static>(wallet_handle: IndyHandle, closure: F) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
pub fn list_async<F: 'static>(wallet_handle: IndyHandle, closure: F) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
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: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
pub fn get_async<F: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode, String) + Send,
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: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
metadata: Option<&str>,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode) + Send,
pub fn set_metadata_async<F: 'static>(
wallet_handle: IndyHandle,
their_did: &str,
metadata: Option<&str>,
closure: F
) -> ErrorCodewhere
F: FnMut(ErrorCode) + Send,
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 RefUnwindSafe for Pairwise
impl Send for Pairwise
impl Sync for Pairwise
impl Unpin for Pairwise
impl UnwindSafe for Pairwise
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more