Struct holochain_state::source_chain::SourceChain [−][src]
pub struct SourceChain { /* fields omitted */ }
Implementations
Take a snapshot of the scratch space that will not remain in sync with future updates.
This has to clone all the data because we can’t return references to constructed data.
pub async fn put_countersigned(
&self,
entry: Entry,
chain_top_ordering: ChainTopOrdering
) -> SourceChainResult<HeaderHash>
pub async fn put<H: HeaderInner, B: HeaderBuilder<H>>(
&self,
header_builder: B,
maybe_entry: Option<Entry>,
chain_top_ordering: ChainTopOrdering
) -> SourceChainResult<HeaderHash>
pub fn valid_cap_grant(
&self,
check_function: &GrantedFunction,
check_agent: &AgentPubKey,
check_secret: Option<&CapSecret>
) -> SourceChainResult<Option<CapGrant>>
Query Headers in the source chain.
This returns a Vec rather than an iterator because it is intended to be
used by the query
host function, which crosses the wasm boundary
pub async fn accept_countersigning_preflight_request(
&self,
preflight_request: PreflightRequest,
agent_index: u8
) -> SourceChainResult<CounterSigningAgentState>
If there is a countersigning session get the StoreEntry op to send to the entry authorities.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SourceChain
impl Send for SourceChain
impl Sync for SourceChain
impl Unpin for SourceChain
impl !UnwindSafe for SourceChain
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