Trait hdi::hdi::HdiT

source · []
pub trait HdiT: Send + Sync {
    fn verify_signature(
        &self,
        verify_signature: VerifySignature
    ) -> ExternResult<bool>; fn hash(&self, hash_input: HashInput) -> ExternResult<HashOutput>; fn must_get_entry(
        &self,
        must_get_entry_input: MustGetEntryInput
    ) -> ExternResult<EntryHashed>; fn must_get_action(
        &self,
        must_get_action_input: MustGetActionInput
    ) -> ExternResult<SignedActionHashed>; fn must_get_valid_record(
        &self,
        must_get_valid_record_input: MustGetValidRecordInput
    ) -> ExternResult<Record>; fn must_get_agent_activity(
        &self,
        must_get_agent_activity_input: MustGetAgentActivityInput
    ) -> ExternResult<Vec<RegisterAgentActivity>>; fn dna_info(&self, dna_info_input: ()) -> ExternResult<DnaInfo>; fn zome_info(&self, zome_info_input: ()) -> ExternResult<ZomeInfo>; fn trace(&self, trace_msg: TraceMsg) -> ExternResult<()>; fn x_salsa20_poly1305_decrypt(
        &self,
        x_salsa20_poly1305_decrypt: XSalsa20Poly1305Decrypt
    ) -> ExternResult<Option<XSalsa20Poly1305Data>>; fn x_25519_x_salsa20_poly1305_decrypt(
        &self,
        x_25519_x_salsa20_poly1305_decrypt: X25519XSalsa20Poly1305Decrypt
    ) -> ExternResult<Option<XSalsa20Poly1305Data>>; }
Expand description

When mocking is enabled the mockall crate automatically builds a MockHdiT for us.

let mut mock_hdi = MockHdiT::new();
mock_hdi.expect_foo().times(1).etc().etc();
set_hdi(mock_hdi);

Required Methods

source

fn must_get_entry(
    &self,
    must_get_entry_input: MustGetEntryInput
) -> ExternResult<EntryHashed>

Implementors

Every call is an error for the ErrHdi.