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 more
sourceimpl From<&'_ HostContext> for EntryDefsHostAccess
impl From<&'_ HostContext> for EntryDefsHostAccess
sourcefn from(_: &HostContext) -> Self
fn from(_: &HostContext) -> Self
Performs the conversion.
sourceimpl From<&'_ HostContext> for HostFnAccess
impl From<&'_ HostContext> for HostFnAccess
sourcefn from(host_access: &HostContext) -> Self
fn from(host_access: &HostContext) -> Self
Performs the conversion.
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
Performs the conversion.
sourceimpl From<GenesisSelfCheckHostAccess> for HostContext
impl From<GenesisSelfCheckHostAccess> for HostContext
sourcefn from(host_access: GenesisSelfCheckHostAccess) -> Self
fn from(host_access: GenesisSelfCheckHostAccess) -> Self
Performs the conversion.
sourceimpl From<InitHostAccess> for HostContext
impl From<InitHostAccess> for HostContext
sourcefn from(init_host_access: InitHostAccess) -> Self
fn from(init_host_access: InitHostAccess) -> Self
Performs the conversion.
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
Performs the conversion.
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
Performs the conversion.
sourceimpl From<ValidateHostAccess> for HostContext
impl From<ValidateHostAccess> for HostContext
sourcefn from(validate_host_access: ValidateHostAccess) -> Self
fn from(validate_host_access: ValidateHostAccess) -> Self
Performs the conversion.
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
Performs the conversion.
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
Performs the conversion.
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 T where
T: Any + ?Sized,
impl<T> Any for T where
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 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
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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more