pub enum HostContext {
EntryDefs(EntryDefsHostAccess),
GenesisSelfCheck(GenesisSelfCheckHostAccess),
Init(InitHostAccess),
MigrateAgent(MigrateAgentHostAccess),
PostCommit(PostCommitHostAccess),
Validate(ValidateHostAccess),
ValidationPackage(ValidationPackageHostAccess),
ZomeCall(ZomeCallHostAccess),
}
Variants
EntryDefs(EntryDefsHostAccess)
GenesisSelfCheck(GenesisSelfCheckHostAccess)
Init(InitHostAccess)
MigrateAgent(MigrateAgentHostAccess)
PostCommit(PostCommitHostAccess)
Validate(ValidateHostAccess)
ValidationPackage(ValidationPackageHostAccess)
ZomeCall(ZomeCallHostAccess)
Implementations
sourceimpl HostContext
impl HostContext
sourcepub fn workspace(&self) -> HostFnWorkspaceRead
pub fn workspace(&self) -> HostFnWorkspaceRead
Get the workspace, panics if none was provided
sourcepub fn workspace_write(&self) -> &HostFnWorkspace
pub fn workspace_write(&self) -> &HostFnWorkspace
Get the workspace, panics if none was provided
sourcepub fn keystore(&self) -> &MetaLairClient
pub fn keystore(&self) -> &MetaLairClient
Get the keystore, panics if none was provided
sourcepub fn network(&self) -> &HolochainP2pDna
pub fn network(&self) -> &HolochainP2pDna
Get the network, panics if none was provided
sourcepub fn signal_tx(&mut self) -> &mut SignalBroadcaster
pub fn signal_tx(&mut self) -> &mut SignalBroadcaster
Get the signal broadcaster, panics if none was provided
sourcepub fn call_zome_handle(&self) -> &CellConductorReadHandle
pub fn call_zome_handle(&self) -> &CellConductorReadHandle
Get the call zome handle, panics if none was provided
Trait Implementations
sourceimpl Clone for HostContext
impl Clone for HostContext
sourcefn clone(&self) -> HostContext
fn clone(&self) -> HostContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HostContext
impl Debug for HostContext
sourceimpl From<&HostContext> for EntryDefsHostAccess
impl From<&HostContext> for EntryDefsHostAccess
sourcefn from(_: &HostContext) -> Self
fn from(_: &HostContext) -> Self
Converts to this type from the input type.
sourceimpl From<&HostContext> for HostFnAccess
impl From<&HostContext> for HostFnAccess
sourcefn from(host_access: &HostContext) -> Self
fn from(host_access: &HostContext) -> Self
Converts to this type from the input type.
sourceimpl From<EntryDefsHostAccess> for HostContext
impl From<EntryDefsHostAccess> for HostContext
sourcefn from(entry_defs_host_access: EntryDefsHostAccess) -> Self
fn from(entry_defs_host_access: EntryDefsHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<GenesisSelfCheckHostAccess> for HostContext
impl From<GenesisSelfCheckHostAccess> for HostContext
sourcefn from(host_access: GenesisSelfCheckHostAccess) -> Self
fn from(host_access: GenesisSelfCheckHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<InitHostAccess> for HostContext
impl From<InitHostAccess> for HostContext
sourcefn from(init_host_access: InitHostAccess) -> Self
fn from(init_host_access: InitHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<MigrateAgentHostAccess> for HostContext
impl From<MigrateAgentHostAccess> for HostContext
sourcefn from(migrate_agent_host_access: MigrateAgentHostAccess) -> Self
fn from(migrate_agent_host_access: MigrateAgentHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<PostCommitHostAccess> for HostContext
impl From<PostCommitHostAccess> for HostContext
sourcefn from(post_commit_host_access: PostCommitHostAccess) -> Self
fn from(post_commit_host_access: PostCommitHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<ValidateHostAccess> for HostContext
impl From<ValidateHostAccess> for HostContext
sourcefn from(validate_host_access: ValidateHostAccess) -> Self
fn from(validate_host_access: ValidateHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<ValidationPackageHostAccess> for HostContext
impl From<ValidationPackageHostAccess> for HostContext
sourcefn from(validation_package_host_access: ValidationPackageHostAccess) -> Self
fn from(validation_package_host_access: ValidationPackageHostAccess) -> Self
Converts to this type from the input type.
sourceimpl From<ZomeCallHostAccess> for HostContext
impl From<ZomeCallHostAccess> for HostContext
sourcefn from(zome_call_host_access: ZomeCallHostAccess) -> Self
fn from(zome_call_host_access: ZomeCallHostAccess) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for HostContext
impl Send for HostContext
impl Sync for HostContext
impl Unpin for HostContext
impl !UnwindSafe for HostContext
Blanket Implementations
impl<T> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745 Read more
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.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
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
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
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 morefn 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).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.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.