Enum holochain::core::ribosome::HostContext
source · pub enum HostContext {
EntryDefs(EntryDefsHostAccess),
GenesisSelfCheck(GenesisSelfCheckHostAccess),
Init(InitHostAccess),
MigrateAgent(MigrateAgentHostAccess),
PostCommit(PostCommitHostAccess),
Validate(ValidateHostAccess),
ZomeCall(ZomeCallHostAccess),
}
Variants§
EntryDefs(EntryDefsHostAccess)
GenesisSelfCheck(GenesisSelfCheckHostAccess)
Init(InitHostAccess)
MigrateAgent(MigrateAgentHostAccess)
PostCommit(PostCommitHostAccess)
Validate(ValidateHostAccess)
ZomeCall(ZomeCallHostAccess)
Implementations§
source§impl 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§
source§impl Clone for HostContext
impl Clone for HostContext
source§fn clone(&self) -> HostContext
fn clone(&self) -> HostContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HostContext
impl Debug for HostContext
source§impl From<&HostContext> for EntryDefsHostAccess
impl From<&HostContext> for EntryDefsHostAccess
source§fn from(_: &HostContext) -> Self
fn from(_: &HostContext) -> Self
Converts to this type from the input type.
source§impl From<&HostContext> for HostFnAccess
impl From<&HostContext> for HostFnAccess
source§fn from(host_access: &HostContext) -> Self
fn from(host_access: &HostContext) -> Self
Converts to this type from the input type.
source§impl From<EntryDefsHostAccess> for HostContext
impl From<EntryDefsHostAccess> for HostContext
source§fn from(entry_defs_host_access: EntryDefsHostAccess) -> Self
fn from(entry_defs_host_access: EntryDefsHostAccess) -> Self
Converts to this type from the input type.
source§impl From<GenesisSelfCheckHostAccess> for HostContext
impl From<GenesisSelfCheckHostAccess> for HostContext
source§fn from(host_access: GenesisSelfCheckHostAccess) -> Self
fn from(host_access: GenesisSelfCheckHostAccess) -> Self
Converts to this type from the input type.
source§impl From<InitHostAccess> for HostContext
impl From<InitHostAccess> for HostContext
source§fn from(init_host_access: InitHostAccess) -> Self
fn from(init_host_access: InitHostAccess) -> Self
Converts to this type from the input type.
source§impl From<MigrateAgentHostAccess> for HostContext
impl From<MigrateAgentHostAccess> for HostContext
source§fn from(migrate_agent_host_access: MigrateAgentHostAccess) -> Self
fn from(migrate_agent_host_access: MigrateAgentHostAccess) -> Self
Converts to this type from the input type.
source§impl From<PostCommitHostAccess> for HostContext
impl From<PostCommitHostAccess> for HostContext
source§fn from(post_commit_host_access: PostCommitHostAccess) -> Self
fn from(post_commit_host_access: PostCommitHostAccess) -> Self
Converts to this type from the input type.
source§impl From<ValidateHostAccess> for HostContext
impl From<ValidateHostAccess> for HostContext
source§fn from(validate_host_access: ValidateHostAccess) -> Self
fn from(validate_host_access: ValidateHostAccess) -> Self
Converts to this type from the input type.
source§impl From<ZomeCallHostAccess> for HostContext
impl From<ZomeCallHostAccess> for HostContext
source§fn 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
§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.
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
§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> ⓘ
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> 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<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 more§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).§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.§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§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