Struct holochain_state::host_fn_workspace::HostFnWorkspace [−][src]
pub struct HostFnWorkspace<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> { /* fields omitted */ }
Implementations
pub async fn flush(
self,
network: &(dyn HolochainP2pDnaT + Send + Sync)
) -> SourceChainResult<Vec<(Option<Zome>, SignedHeaderHashed)>>
impl<SourceChainDb, SourceChainDht> HostFnWorkspace<SourceChainDb, SourceChainDht> where
SourceChainDb: ReadAccess<DbKindAuthored>,
SourceChainDht: ReadAccess<DbKindDht>,
impl<SourceChainDb, SourceChainDht> HostFnWorkspace<SourceChainDb, SourceChainDht> where
SourceChainDb: ReadAccess<DbKindAuthored>,
SourceChainDht: ReadAccess<DbKindDht>,
pub async fn new(
authored: SourceChainDb,
dht: SourceChainDht,
cache: DbWrite<DbKindCache>,
keystore: MetaLairClient,
author: Option<AgentPubKey>
) -> SourceChainResult<Self>
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
impl<SourceChainDb: Clone, SourceChainDht: Clone> Clone for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb: Clone, SourceChainDht: Clone> Clone for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl From<HostFnWorkspace<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for HostFnWorkspaceRead
impl From<HostFnWorkspace<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for HostFnWorkspaceRead
Performs the conversion.
Performs the conversion.
type Error = SourceChainError
type Error = SourceChainError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> !RefUnwindSafe for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb, SourceChainDht> Send for HostFnWorkspace<SourceChainDb, SourceChainDht> where
SourceChainDb: Send,
SourceChainDht: Send,
impl<SourceChainDb, SourceChainDht> Sync for HostFnWorkspace<SourceChainDb, SourceChainDht> where
SourceChainDb: Sync,
SourceChainDht: Sync,
impl<SourceChainDb, SourceChainDht> Unpin for HostFnWorkspace<SourceChainDb, SourceChainDht> where
SourceChainDb: Unpin,
SourceChainDht: Unpin,
impl<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> !UnwindSafe for HostFnWorkspace<SourceChainDb, SourceChainDht>
Blanket Implementations
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
Mutably borrows from an owned value. Read more
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>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more