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 count_links(&self, _: LinkQuery) -> ExternResult<usize>
fn block_agent(&self, _: BlockAgentInput) -> ExternResult<()>
fn unblock_agent(&self, _: BlockAgentInput) -> ExternResult<()>
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>
fn create_clone_cell( &self, _input: CreateCloneCellInput ) -> ExternResult<ClonedCell>
fn disable_clone_cell(&self, _input: DisableCloneCellInput) -> ExternResult<()>
fn enable_clone_cell( &self, _input: EnableCloneCellInput ) -> ExternResult<ClonedCell>
fn delete_clone_cell(&self, _input: DeleteCloneCellInput) -> ExternResult<()>
Auto Trait Implementations§
impl Freeze for ErrHdk
impl RefUnwindSafe for ErrHdk
impl Send for ErrHdk
impl Sync for ErrHdk
impl Unpin for ErrHdk
impl UnwindSafe for ErrHdk
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§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.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref