Struct holochain_state::scratch::Scratch [−][src]
pub struct Scratch { /* fields omitted */ }
Expand description
The “scratch” is an in-memory space to stage Headers to be committed at the end of the CallZome workflow.
This space must also be queryable: specifically, it needs to be combined into queries into the database which return Headers. This is done by a simple filter on the scratch space, and then chaining that iterator onto the iterators over the Headers in the database(s) produced by the Cascade.
Implementations
Get the entries on in the scratch.
Drain out all the headers.
Drain out all the entries.
Trait Implementations
Get an Entry
from this store.
Check if an entry is contained in the store
Check if a header is contained in the store
Get an SignedHeaderHashed
from this store.
Get an Element
from this store.
Check if a hash is contained in the store
type O = FilteredScratch
Gets the raw initial data from the database, needed to begin the query.
Auto Trait Implementations
impl RefUnwindSafe for Scratch
impl UnwindSafe for Scratch
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