Trait hdk::prelude::HostFnApiT

source ·
pub trait HostFnApiT {
Show 44 methods fn accept_countersigning_preflight_request(
        &self,
        _: PreflightRequest
    ) -> Result<PreflightRequestAcceptance, HostFnApiError>; fn agent_info(&self, _: ()) -> Result<AgentInfo, HostFnApiError>; fn dna_info(&self, _: ()) -> Result<DnaInfo, HostFnApiError>; fn call_info(&self, _: ()) -> Result<CallInfo, HostFnApiError>; fn call(
        &self,
        _: Vec<Call, Global>
    ) -> Result<Vec<ZomeCallResponse, Global>, HostFnApiError>; fn capability_claims(&self, _: ()) -> Result<(), HostFnApiError>; fn capability_grants(&self, _: ()) -> Result<(), HostFnApiError>; fn capability_info(&self, _: ()) -> Result<(), HostFnApiError>; fn create(&self, _: CreateInput) -> Result<HoloHash<Action>, HostFnApiError>; fn create_link(
        &self,
        _: CreateLinkInput
    ) -> Result<HoloHash<Action>, HostFnApiError>; fn create_x25519_keypair(
        &self,
        _: ()
    ) -> Result<X25519PubKey, HostFnApiError>; fn trace(&self, _: TraceMsg) -> Result<(), HostFnApiError>; fn delete_link(
        &self,
        _: DeleteLinkInput
    ) -> Result<HoloHash<Action>, HostFnApiError>; fn delete(&self, _: DeleteInput) -> Result<HoloHash<Action>, HostFnApiError>; fn emit_signal(&self, _: AppSignal) -> Result<(), HostFnApiError>; fn get_agent_activity(
        &self,
        _: GetAgentActivityInput
    ) -> Result<AgentActivity, HostFnApiError>; fn get_details(
        &self,
        _: Vec<GetInput, Global>
    ) -> Result<Vec<Option<Details>, Global>, HostFnApiError>; fn get_link_details(
        &self,
        _: Vec<GetLinksInput, Global>
    ) -> Result<Vec<LinkDetails, Global>, HostFnApiError>; fn get_links(
        &self,
        _: Vec<GetLinksInput, Global>
    ) -> Result<Vec<Vec<Link, Global>, Global>, HostFnApiError>; fn get(
        &self,
        _: Vec<GetInput, Global>
    ) -> Result<Vec<Option<Record<SignedHashed<Action>>>, Global>, HostFnApiError>; fn hash(&self, _: HashInput) -> Result<HashOutput, HostFnApiError>; fn must_get_valid_record(
        &self,
        _: MustGetValidRecordInput
    ) -> Result<Record<SignedHashed<Action>>, HostFnApiError>; fn must_get_entry(
        &self,
        _: MustGetEntryInput
    ) -> Result<HoloHashed<Entry>, HostFnApiError>; fn must_get_action(
        &self,
        _: MustGetActionInput
    ) -> Result<SignedHashed<Action>, HostFnApiError>; fn must_get_agent_activity(
        &self,
        _: MustGetAgentActivityInput
    ) -> Result<Vec<RegisterAgentActivity, Global>, HostFnApiError>; fn query(
        &self,
        _: ChainQueryFilter
    ) -> Result<Vec<Record<SignedHashed<Action>>, Global>, HostFnApiError>; fn random_bytes(&self, _: u32) -> Result<ByteBuf, HostFnApiError>; fn remote_signal(&self, _: RemoteSignal) -> Result<(), HostFnApiError>; fn schedule(&self, _: String) -> Result<(), HostFnApiError>; fn sleep(&self, _: Duration) -> Result<(), HostFnApiError>; fn version(&self, _: ()) -> Result<ZomeApiVersion, HostFnApiError>; fn sign(&self, _: Sign) -> Result<Signature, HostFnApiError>; fn sign_ephemeral(
        &self,
        _: SignEphemeral
    ) -> Result<EphemeralSignatures, HostFnApiError>; fn sys_time(&self, _: ()) -> Result<Timestamp, HostFnApiError>; fn update(&self, _: UpdateInput) -> Result<HoloHash<Action>, HostFnApiError>; fn verify_signature(
        &self,
        _: VerifySignature
    ) -> Result<bool, HostFnApiError>; fn x_salsa20_poly1305_shared_secret_create_random(
        &self,
        _: Option<XSalsa20Poly1305KeyRef>
    ) -> Result<XSalsa20Poly1305KeyRef, HostFnApiError>; fn x_salsa20_poly1305_shared_secret_export(
        &self,
        _: XSalsa20Poly1305SharedSecretExport
    ) -> Result<XSalsa20Poly1305EncryptedData, HostFnApiError>; fn x_salsa20_poly1305_shared_secret_ingest(
        &self,
        _: XSalsa20Poly1305SharedSecretIngest
    ) -> Result<XSalsa20Poly1305KeyRef, HostFnApiError>; fn x_salsa20_poly1305_encrypt(
        &self,
        _: XSalsa20Poly1305Encrypt
    ) -> Result<XSalsa20Poly1305EncryptedData, HostFnApiError>; fn x_salsa20_poly1305_decrypt(
        &self,
        _: XSalsa20Poly1305Decrypt
    ) -> Result<Option<XSalsa20Poly1305Data>, HostFnApiError>; fn x_25519_x_salsa20_poly1305_encrypt(
        &self,
        _: X25519XSalsa20Poly1305Encrypt
    ) -> Result<XSalsa20Poly1305EncryptedData, HostFnApiError>; fn x_25519_x_salsa20_poly1305_decrypt(
        &self,
        _: X25519XSalsa20Poly1305Decrypt
    ) -> Result<Option<XSalsa20Poly1305Data>, HostFnApiError>; fn zome_info(&self, _: ()) -> Result<ZomeInfo, HostFnApiError>;
}

Required Methods

source

fn must_get_entry(
    &self,
    _: MustGetEntryInput
) -> Result<HoloHashed<Entry>, HostFnApiError>

Implementors