pub struct HostFnWorkspace<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> { /* private fields */ }
Implementations§
source§impl HostFnWorkspace
impl HostFnWorkspace
pub async fn flush( self, network: &(dyn HolochainP2pDnaT + Send + Sync) ) -> SourceChainResult<Vec<SignedActionHashed>>
source§impl<SourceChainDb, SourceChainDht> HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb, SourceChainDht> HostFnWorkspace<SourceChainDb, SourceChainDht>
pub async fn new( authored: SourceChainDb, dht: SourceChainDht, dht_db_cache: DhtDbQueryCache, cache: DbWrite<DbKindCache>, keystore: MetaLairClient, author: Option<AgentPubKey>, dna_def: Arc<DnaDef> ) -> SourceChainResult<Self>
pub fn source_chain( &self ) -> &Option<SourceChain<SourceChainDb, SourceChainDht>>
pub fn stores(&self) -> HostFnStores
pub fn databases( &self ) -> (DbRead<DbKindAuthored>, DbRead<DbKindDht>, DbWrite<DbKindCache>)
Trait Implementations§
source§impl AsRef<HostFnWorkspace> for SourceChainWorkspace
impl AsRef<HostFnWorkspace> for SourceChainWorkspace
source§fn as_ref(&self) -> &HostFnWorkspace
fn as_ref(&self) -> &HostFnWorkspace
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<HostFnWorkspace> for SourceChainWorkspace
impl Borrow<HostFnWorkspace> for SourceChainWorkspace
source§fn borrow(&self) -> &HostFnWorkspace
fn borrow(&self) -> &HostFnWorkspace
Immutably borrows from an owned value. Read more
source§impl<SourceChainDb: Clone, SourceChainDht: Clone> Clone for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb: Clone, SourceChainDht: Clone> Clone for HostFnWorkspace<SourceChainDb, SourceChainDht>
source§fn clone(&self) -> HostFnWorkspace<SourceChainDb, SourceChainDht>
fn clone(&self) -> HostFnWorkspace<SourceChainDb, SourceChainDht>
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 From<HostFnWorkspace> for HostFnWorkspaceRead
impl From<HostFnWorkspace> for HostFnWorkspaceRead
source§fn from(workspace: HostFnWorkspace) -> Self
fn from(workspace: HostFnWorkspace) -> Self
Converts to this type from the input type.
source§impl From<SourceChainWorkspace> for HostFnWorkspace
impl From<SourceChainWorkspace> for HostFnWorkspace
source§fn from(workspace: SourceChainWorkspace) -> Self
fn from(workspace: SourceChainWorkspace) -> Self
Converts to this type from the input type.
source§impl TryFrom<HostFnWorkspace> for SourceChainWorkspace
impl TryFrom<HostFnWorkspace> for SourceChainWorkspace
§type Error = SourceChainError
type Error = SourceChainError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<SourceChainDb, SourceChainDht> Freeze for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> !RefUnwindSafe for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb, SourceChainDht> Send for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb, SourceChainDht> Sync for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb, SourceChainDht> Unpin for HostFnWorkspace<SourceChainDb, SourceChainDht>
impl<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> !UnwindSafe for HostFnWorkspace<SourceChainDb, SourceChainDht>
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§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>
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