pub struct HostFnWorkspace<SourceChainDb = DbWrite<DbKindAuthored>, SourceChainDht = DbWrite<DbKindDht>> { /* private fields */ }
Implementations§
source§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, 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<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for SourceChainWorkspace
impl AsRef<HostFnWorkspace<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> 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<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for SourceChainWorkspace
impl Borrow<HostFnWorkspace<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> 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<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for HostFnWorkspaceRead
impl From<HostFnWorkspace<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> 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<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for SourceChainWorkspace
impl TryFrom<HostFnWorkspace<DbWrite<DbKindAuthored>, DbWrite<DbKindDht>>> for SourceChainWorkspace
§type Error = SourceChainError
type Error = SourceChainError
The type returned in the event of a conversion error.
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§
§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