pub struct AnonCreds {}
Implementations§
Source§impl AnonCreds
impl AnonCreds
pub fn create_revocation_state( blob_storage_reader_handle: IndyHandle, rev_reg_def_json: &str, rev_reg_delta_json: &str, timestamp: u64, cred_rev_id: &str, ) -> Result<String, ErrorCode>
Sourcepub fn create_revocation_state_timeout(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
pub fn create_revocation_state_timeout( blob_storage_reader_handle: IndyHandle, rev_reg_def_json: &str, rev_reg_delta_json: &str, timestamp: u64, cred_rev_id: &str, timeout: Duration, ) -> Result<String, ErrorCode>
timeout
- the maximum time this function waits for a response
Sourcepub fn create_revocation_state_async<F>(
blob_storage_reader_handle: IndyHandle,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
closure: F,
) -> ErrorCode
pub fn create_revocation_state_async<F>( blob_storage_reader_handle: IndyHandle, rev_reg_def_json: &str, rev_reg_delta_json: &str, timestamp: u64, cred_rev_id: &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 update_revocation_state( blob_storage_reader_handle: IndyHandle, rev_state_json: &str, rev_reg_def_json: &str, rev_reg_delta_json: &str, timestamp: u64, cred_rev_id: &str, ) -> Result<String, ErrorCode>
Sourcepub fn update_revocation_state_timeout(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
pub fn update_revocation_state_timeout( blob_storage_reader_handle: IndyHandle, rev_state_json: &str, rev_reg_def_json: &str, rev_reg_delta_json: &str, timestamp: u64, cred_rev_id: &str, timeout: Duration, ) -> Result<String, ErrorCode>
timeout
- the maximum time this function waits for a response
Sourcepub fn update_revocation_state_async<F>(
blob_storage_reader_handle: IndyHandle,
rev_state_json: &str,
rev_reg_def_json: &str,
rev_reg_delta_json: &str,
timestamp: u64,
cred_rev_id: &str,
closure: F,
) -> ErrorCode
pub fn update_revocation_state_async<F>( blob_storage_reader_handle: IndyHandle, rev_state_json: &str, rev_reg_def_json: &str, rev_reg_delta_json: &str, timestamp: u64, cred_rev_id: &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 AnonCreds
impl RefUnwindSafe for AnonCreds
impl Send for AnonCreds
impl Sync for AnonCreds
impl Unpin for AnonCreds
impl UnwindSafe for AnonCreds
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