pub struct ErrHdk;
Expand description
Used as a placeholder before any other Hdk is registered. Generally only useful for testing but technically can be set any time.
Trait Implementations§
source§impl HdiT for ErrHdk
impl HdiT for ErrHdk
Every call is an error for the ErrHdk.
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,
_: 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, _: 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>>
source§impl HdkT for ErrHdk
impl HdkT for ErrHdk
Every call is an error for the ErrHdk.
fn get_agent_activity(
&self,
_: GetAgentActivityInput
) -> ExternResult<AgentActivity>
fn query(&self, _: ChainQueryFilter) -> ExternResult<Vec<Record>>
fn sign(&self, _: Sign) -> ExternResult<Signature>
fn sign_ephemeral(&self, _: SignEphemeral) -> ExternResult<EphemeralSignatures>
fn create(&self, _: CreateInput) -> ExternResult<ActionHash>
fn update(&self, _: UpdateInput) -> ExternResult<ActionHash>
fn delete(&self, _: DeleteInput) -> ExternResult<ActionHash>
fn get(&self, _: Vec<GetInput>) -> ExternResult<Vec<Option<Record>>>
fn get_details(&self, _: Vec<GetInput>) -> ExternResult<Vec<Option<Details>>>
fn accept_countersigning_preflight_request(
&self,
_: PreflightRequest
) -> ExternResult<PreflightRequestAcceptance>
fn agent_info(&self, _: ()) -> ExternResult<AgentInfo>
fn call_info(&self, _: ()) -> ExternResult<CallInfo>
fn create_link(&self, _: CreateLinkInput) -> ExternResult<ActionHash>
fn delete_link(&self, _: DeleteLinkInput) -> ExternResult<ActionHash>
fn get_links(&self, _: Vec<GetLinksInput>) -> ExternResult<Vec<Vec<Link>>>
fn get_link_details(
&self,
_: Vec<GetLinksInput>
) -> ExternResult<Vec<LinkDetails>>
fn call(&self, _: Vec<Call>) -> ExternResult<Vec<ZomeCallResponse>>
fn emit_signal(&self, _: AppSignal) -> ExternResult<()>
fn remote_signal(&self, _: RemoteSignal) -> ExternResult<()>
fn random_bytes(&self, _: u32) -> ExternResult<Bytes>
fn sys_time(&self, _: ()) -> ExternResult<Timestamp>
fn schedule(&self, _: String) -> ExternResult<()>
fn sleep(&self, _: Duration) -> ExternResult<()>
fn x_salsa20_poly1305_encrypt(
&self,
_x_salsa20_poly1305_encrypt: XSalsa20Poly1305Encrypt
) -> ExternResult<XSalsa20Poly1305EncryptedData>
fn create_x25519_keypair(
&self,
_create_x25519_keypair_input: ()
) -> ExternResult<X25519PubKey>
fn x_25519_x_salsa20_poly1305_encrypt(
&self,
_x_25519_x_salsa20_poly1305_encrypt: X25519XSalsa20Poly1305Encrypt
) -> ExternResult<XSalsa20Poly1305EncryptedData>
Auto Trait Implementations§
impl RefUnwindSafe for ErrHdk
impl Send for ErrHdk
impl Sync for ErrHdk
impl Unpin for ErrHdk
impl UnwindSafe for ErrHdk
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref