Struct holochain_state::query::DbScratch
source · [−]pub struct DbScratch<'borrow, 'txn> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<'borrow, 'txn> Store for DbScratch<'borrow, 'txn>
impl<'borrow, 'txn> Store for DbScratch<'borrow, 'txn>
sourcefn get_entry(&self, hash: &EntryHash) -> StateQueryResult<Option<Entry>>
fn get_entry(&self, hash: &EntryHash) -> StateQueryResult<Option<Entry>>
Get an [Entry
] from this store.
sourcefn contains_entry(&self, hash: &EntryHash) -> StateQueryResult<bool>
fn contains_entry(&self, hash: &EntryHash) -> StateQueryResult<bool>
Check if an entry is contained in the store
sourcefn contains_action(&self, hash: &ActionHash) -> StateQueryResult<bool>
fn contains_action(&self, hash: &ActionHash) -> StateQueryResult<bool>
Check if an action is contained in the store
sourcefn get_action(
&self,
hash: &ActionHash
) -> StateQueryResult<Option<SignedActionHashed>>
fn get_action(
&self,
hash: &ActionHash
) -> StateQueryResult<Option<SignedActionHashed>>
Get an [SignedActionHashed
] from this store.
sourcefn get_record(&self, hash: &AnyDhtHash) -> StateQueryResult<Option<Record>>
fn get_record(&self, hash: &AnyDhtHash) -> StateQueryResult<Option<Record>>
Get an [Record
] from this store.
Get an [Entry
] from this store. Read more
Get an [Record
] from this store that is either public or
authored by the given key. Read more
sourcefn contains_hash(&self, hash: &AnyDhtHash) -> StateQueryResult<bool>
fn contains_hash(&self, hash: &AnyDhtHash) -> StateQueryResult<bool>
Check if a hash is contained in the store
sourceimpl<'borrow, 'txn, Q> Stores<Q> for DbScratch<'borrow, 'txn> where
Q: Query<Item = Judged<SignedActionHashed>>,
impl<'borrow, 'txn, Q> Stores<Q> for DbScratch<'borrow, 'txn> where
Q: Query<Item = Judged<SignedActionHashed>>,
type O = DbScratchIter<'borrow, Q>
sourcefn get_initial_data(&self, query: Q) -> StateQueryResult<Self::O>
fn get_initial_data(&self, query: Q) -> StateQueryResult<Self::O>
Gets the raw initial data from the database, needed to begin the query.
Auto Trait Implementations
impl<'borrow, 'txn> !RefUnwindSafe for DbScratch<'borrow, 'txn>
impl<'borrow, 'txn> !Send for DbScratch<'borrow, 'txn>
impl<'borrow, 'txn> !Sync for DbScratch<'borrow, 'txn>
impl<'borrow, 'txn> Unpin for DbScratch<'borrow, 'txn> where
'txn: 'borrow,
impl<'borrow, 'txn> !UnwindSafe for DbScratch<'borrow, 'txn>
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<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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>
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
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