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
sourceimpl 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<Element>>
fn sign(&self, _: Sign) -> ExternResult<Signature>
fn sign_ephemeral(&self, _: SignEphemeral) -> ExternResult<EphemeralSignatures>
fn verify_signature(&self, _: VerifySignature) -> ExternResult<bool>
fn create(&self, _: CreateInput) -> ExternResult<HeaderHash>
fn update(&self, _: UpdateInput) -> ExternResult<HeaderHash>
fn delete(&self, _: DeleteInput) -> ExternResult<HeaderHash>
fn hash(&self, _: HashInput) -> ExternResult<HashOutput>
fn get(&self, _: Vec<GetInput>) -> ExternResult<Vec<Option<Element>>>
fn get_details(&self, _: Vec<GetInput>) -> ExternResult<Vec<Option<Details>>>
fn must_get_entry(&self, _: MustGetEntryInput) -> ExternResult<EntryHashed>
fn must_get_header(
&self,
_: MustGetHeaderInput
) -> ExternResult<SignedHeaderHashed>
fn must_get_valid_element(
&self,
_: MustGetValidElementInput
) -> ExternResult<Element>
fn accept_countersigning_preflight_request(
&self,
_: PreflightRequest
) -> ExternResult<PreflightRequestAcceptance>
fn agent_info(&self, _: ()) -> ExternResult<AgentInfo>
fn dna_info(&self, _: ()) -> ExternResult<DnaInfo>
fn zome_info(&self, _: ()) -> ExternResult<ZomeInfo>
fn call_info(&self, _: ()) -> ExternResult<CallInfo>
fn create_link(&self, _: CreateLinkInput) -> ExternResult<HeaderHash>
fn delete_link(&self, _: DeleteLinkInput) -> ExternResult<HeaderHash>
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 trace(&self, _: TraceMsg) -> ExternResult<()>
fn create_x25519_keypair(&self, _: ()) -> ExternResult<X25519PubKey>
fn x_salsa20_poly1305_decrypt(
&self,
_: XSalsa20Poly1305Decrypt
) -> ExternResult<Option<XSalsa20Poly1305Data>>
fn x_salsa20_poly1305_encrypt(
&self,
_: XSalsa20Poly1305Encrypt
) -> ExternResult<XSalsa20Poly1305EncryptedData>
fn x_25519_x_salsa20_poly1305_encrypt(
&self,
_: X25519XSalsa20Poly1305Encrypt
) -> ExternResult<XSalsa20Poly1305EncryptedData>
fn x_25519_x_salsa20_poly1305_decrypt(
&self,
_: X25519XSalsa20Poly1305Decrypt
) -> ExternResult<Option<XSalsa20Poly1305Data>>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more