Trait hdk::prelude::HostFnApiT

source ·
pub trait HostFnApiT {
Show 52 methods // Required methods fn accept_countersigning_preflight_request( &self, _: PreflightRequest ) -> Result<PreflightRequestAcceptance, HostFnApiError>; fn agent_info(&self, _: ()) -> Result<AgentInfo, HostFnApiError>; fn block_agent(&self, _: BlockAgentInput) -> Result<(), HostFnApiError>; fn dna_info_1(&self, _: ()) -> Result<DnaInfoV1, HostFnApiError>; fn dna_info_2(&self, _: ()) -> Result<DnaInfoV2, HostFnApiError>; fn call_info(&self, _: ()) -> Result<CallInfo, HostFnApiError>; fn call( &self, _: Vec<Call> ) -> Result<Vec<ZomeCallResponse>, 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> ) -> Result<Vec<Option<Details>>, HostFnApiError>; fn get_link_details( &self, _: Vec<GetLinksInput> ) -> Result<Vec<LinkDetails>, HostFnApiError>; fn get_links( &self, _: Vec<GetLinksInput> ) -> Result<Vec<Vec<Link>>, HostFnApiError>; fn count_links(&self, _: LinkQuery) -> Result<usize, HostFnApiError>; fn get( &self, _: Vec<GetInput> ) -> Result<Vec<Option<Record>>, HostFnApiError>; fn hash(&self, _: HashInput) -> Result<HashOutput, HostFnApiError>; fn must_get_valid_record( &self, _: MustGetValidRecordInput ) -> Result<Record, 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>, HostFnApiError>; fn query(&self, _: ChainQueryFilter) -> Result<Vec<Record>, 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 unblock_agent(&self, _: BlockAgentInput) -> Result<(), 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>; fn create_clone_cell( &self, _: CreateCloneCellInput ) -> Result<ClonedCell, HostFnApiError>; fn disable_clone_cell( &self, _: DisableCloneCellInput ) -> Result<(), HostFnApiError>; fn enable_clone_cell( &self, _: DisableCloneCellInput ) -> Result<ClonedCell, HostFnApiError>; fn delete_clone_cell( &self, _: DisableCloneCellInput ) -> Result<(), HostFnApiError>;
}

Required Methods§

source

fn accept_countersigning_preflight_request( &self, _: PreflightRequest ) -> Result<PreflightRequestAcceptance, HostFnApiError>

source

fn agent_info(&self, _: ()) -> Result<AgentInfo, HostFnApiError>

source

fn block_agent(&self, _: BlockAgentInput) -> Result<(), HostFnApiError>

source

fn dna_info_1(&self, _: ()) -> Result<DnaInfoV1, HostFnApiError>

source

fn dna_info_2(&self, _: ()) -> Result<DnaInfoV2, HostFnApiError>

source

fn call_info(&self, _: ()) -> Result<CallInfo, HostFnApiError>

source

fn call(&self, _: Vec<Call>) -> Result<Vec<ZomeCallResponse>, HostFnApiError>

source

fn capability_claims(&self, _: ()) -> Result<(), HostFnApiError>

source

fn capability_grants(&self, _: ()) -> Result<(), HostFnApiError>

source

fn capability_info(&self, _: ()) -> Result<(), HostFnApiError>

source

fn create(&self, _: CreateInput) -> Result<HoloHash<Action>, HostFnApiError>

source

fn create_x25519_keypair(&self, _: ()) -> Result<X25519PubKey, HostFnApiError>

source

fn trace(&self, _: TraceMsg) -> Result<(), HostFnApiError>

source

fn delete(&self, _: DeleteInput) -> Result<HoloHash<Action>, HostFnApiError>

source

fn emit_signal(&self, _: AppSignal) -> Result<(), HostFnApiError>

source

fn get_agent_activity( &self, _: GetAgentActivityInput ) -> Result<AgentActivity, HostFnApiError>

source

fn get_details( &self, _: Vec<GetInput> ) -> Result<Vec<Option<Details>>, HostFnApiError>

source

fn get(&self, _: Vec<GetInput>) -> Result<Vec<Option<Record>>, HostFnApiError>

source

fn hash(&self, _: HashInput) -> Result<HashOutput, HostFnApiError>

source

fn must_get_valid_record( &self, _: MustGetValidRecordInput ) -> Result<Record, HostFnApiError>

source

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

source

fn must_get_action( &self, _: MustGetActionInput ) -> Result<SignedHashed<Action>, HostFnApiError>

source

fn must_get_agent_activity( &self, _: MustGetAgentActivityInput ) -> Result<Vec<RegisterAgentActivity>, HostFnApiError>

source

fn query(&self, _: ChainQueryFilter) -> Result<Vec<Record>, HostFnApiError>

source

fn random_bytes(&self, _: u32) -> Result<ByteBuf, HostFnApiError>

source

fn remote_signal(&self, _: RemoteSignal) -> Result<(), HostFnApiError>

source

fn schedule(&self, _: String) -> Result<(), HostFnApiError>

source

fn sleep(&self, _: Duration) -> Result<(), HostFnApiError>

source

fn version(&self, _: ()) -> Result<ZomeApiVersion, HostFnApiError>

source

fn sign(&self, _: Sign) -> Result<Signature, HostFnApiError>

source

fn sign_ephemeral( &self, _: SignEphemeral ) -> Result<EphemeralSignatures, HostFnApiError>

source

fn sys_time(&self, _: ()) -> Result<Timestamp, HostFnApiError>

source

fn update(&self, _: UpdateInput) -> Result<HoloHash<Action>, HostFnApiError>

source

fn unblock_agent(&self, _: BlockAgentInput) -> Result<(), HostFnApiError>

source

fn verify_signature(&self, _: VerifySignature) -> Result<bool, HostFnApiError>

source

fn x_salsa20_poly1305_shared_secret_create_random( &self, _: Option<XSalsa20Poly1305KeyRef> ) -> Result<XSalsa20Poly1305KeyRef, HostFnApiError>

source

fn x_salsa20_poly1305_shared_secret_export( &self, _: XSalsa20Poly1305SharedSecretExport ) -> Result<XSalsa20Poly1305EncryptedData, HostFnApiError>

source

fn x_salsa20_poly1305_shared_secret_ingest( &self, _: XSalsa20Poly1305SharedSecretIngest ) -> Result<XSalsa20Poly1305KeyRef, HostFnApiError>

source

fn x_salsa20_poly1305_encrypt( &self, _: XSalsa20Poly1305Encrypt ) -> Result<XSalsa20Poly1305EncryptedData, HostFnApiError>

source

fn x_salsa20_poly1305_decrypt( &self, _: XSalsa20Poly1305Decrypt ) -> Result<Option<XSalsa20Poly1305Data>, HostFnApiError>

source

fn x_25519_x_salsa20_poly1305_encrypt( &self, _: X25519XSalsa20Poly1305Encrypt ) -> Result<XSalsa20Poly1305EncryptedData, HostFnApiError>

source

fn x_25519_x_salsa20_poly1305_decrypt( &self, _: X25519XSalsa20Poly1305Decrypt ) -> Result<Option<XSalsa20Poly1305Data>, HostFnApiError>

source

fn zome_info(&self, _: ()) -> Result<ZomeInfo, HostFnApiError>

source

fn create_clone_cell( &self, _: CreateCloneCellInput ) -> Result<ClonedCell, HostFnApiError>

source

fn disable_clone_cell( &self, _: DisableCloneCellInput ) -> Result<(), HostFnApiError>

source

fn enable_clone_cell( &self, _: DisableCloneCellInput ) -> Result<ClonedCell, HostFnApiError>

source

fn delete_clone_cell( &self, _: DisableCloneCellInput ) -> Result<(), HostFnApiError>

Implementors§