pub trait HostFnApiT {
Show 48 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 send_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>;
}