pub struct Memory { /* private fields */ }Implementations§
Source§impl Memory
impl Memory
Sourcepub fn resolve_active_descendant(
&self,
trigger: NodeId,
) -> Result<Option<NodeId>, Error>
pub fn resolve_active_descendant( &self, trigger: NodeId, ) -> Result<Option<NodeId>, Error>
Named relations may resolve after construction. Missing, inactive or retired members are never reported as an active option; identity comes from the current live name registry, not an old slot or visited history.
Source§impl Memory
impl Memory
pub fn submission(&mut self) -> Result<Submission<'_>, Error>
Source§impl Memory
impl Memory
pub fn file_pending( &self, node: NodeId, request: u64, revision: u64, ) -> Result<bool, Error>
pub fn validate_file_action(&self, action: Action) -> Result<(), Error>
pub fn admit_file_action(&mut self, action: Action) -> Result<(), Error>
pub fn next_file_request(&self, node: NodeId) -> Result<u64, Error>
pub fn admit_file_picker( &mut self, node: NodeId, revision: u64, request: u64, ) -> Result<(), Error>
pub fn validate_file_event( &self, node: NodeId, document: FileDocumentId, event: &FileEvent, ) -> Result<bool, Error>
pub fn finish_files( &mut self, node: NodeId, document: FileDocumentId, event: &FileEvent, ) -> Result<bool, Error>
pub fn selected_file(&self, token: FileToken) -> Result<&FileInfo, Error>
pub fn clear_files(&mut self, node: NodeId, revision: u64) -> Result<(), Error>
pub fn remove_file(&mut self, token: FileToken) -> Result<(), Error>
Sourcepub fn next_clipboard_request(&self, node: NodeId) -> Result<u64, Error>
pub fn next_clipboard_request(&self, node: NodeId) -> Result<u64, Error>
Numeric identity belongs to this live NodeId, even if the source facet is cleared and declared again. Merely reading it does not reserve it.
pub fn clipboard_pending( &self, node: NodeId, request: u64, revision: u64, ) -> Result<bool, Error>
pub fn validate_clipboard_action(&self, action: Action) -> Result<(), Error>
Sourcepub fn admit_clipboard(&mut self, action: Action) -> Result<(), Error>
pub fn admit_clipboard(&mut self, action: Action) -> Result<(), Error>
Shared request admission. Call after capability checks, immediately before queuing/performing the host action. No payload or callback cache.
Sourcepub fn finish_clipboard(
&mut self,
node: NodeId,
request: u64,
revision: u64,
) -> Result<bool, Error>
pub fn finish_clipboard( &mut self, node: NodeId, request: u64, revision: u64, ) -> Result<bool, Error>
First terminal delivery consumes the current pending numeric request.
pub fn cancel_clipboard(&mut self, node: NodeId) -> Result<(), Error>
pub fn new(runtime: RuntimeId) -> Self
pub fn node(&self, id: NodeId) -> Result<&Node, Error>
Sourcepub fn named(&self, name: &SemanticId) -> Option<NodeId>
pub fn named(&self, name: &SemanticId) -> Option<NodeId>
Resolve a symbolic relation to its live identity in O(1), without owning the target or retaining names after disposal.
Nearest explicit collection boundary of a registered trigger. Walk only semantic ancestors; never infer membership for descendant editors.
pub fn roots(&self) -> &[NodeId]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn retained_slots(&self) -> usize
Sourcepub fn layers(&self) -> usize
pub fn layers(&self) -> usize
Numeric current declaration count; no source or historical layer scan.
pub fn stats(&self) -> Stats
Sourcepub fn receipt(&self) -> Receipt
pub fn receipt(&self) -> Receipt
Accepted operation watermark, without forcing observation or layout.
Sourcepub fn prepare_patch(
&mut self,
id: NodeId,
patch: &Patch,
) -> Result<PreparedPatch<'_>, Error>
pub fn prepare_patch( &mut self, id: NodeId, patch: &Patch, ) -> Result<PreparedPatch<'_>, Error>
Prepare against this validated/canonical live tree without cloning the descriptor or scanning unrelated payloads. The guard can be inspected by a lowering adapter, then committed, or dropped if adapter checks fail.
Sourcepub fn active(&self, id: NodeId) -> bool
pub fn active(&self, id: NodeId) -> bool
Suspension is inherited, but each node retains its own logical owner and order. Disposing a parent also destroys its suspended children.
Sourcepub fn layer_anchor_live(&self, id: NodeId) -> bool
pub fn layer_anchor_live(&self, id: NodeId) -> bool
Resolve one current named anchor and its ancestry. Missing or late-bound relations remain valid configuration, but cannot open a physical layer.
Sourcepub fn enabled(&self, id: NodeId) -> bool
pub fn enabled(&self, id: NodeId) -> bool
Logical group disabling also applies before a host has committed markup. No source scan: only the live target and its ancestors are inspected.
Sourcepub fn inert(&self, id: NodeId) -> bool
pub fn inert(&self, id: NodeId) -> bool
Current semantic ancestry only; inert keeps layout, owners and queries.
Sourcepub fn validate_event(&self, id: NodeId, event: &Event) -> Result<bool, Error>
pub fn validate_event(&self, id: NodeId, event: &Event) -> Result<bool, Error>
False means an embedded origin was retired or is no longer active. Malformed live origins/payloads are errors; no callback or mutation runs.
pub fn push_event(&mut self, id: NodeId, event: Event) -> Result<(), Error>
Sourcepub fn next_sibling(&self, id: NodeId) -> Result<Option<NodeId>, Error>
pub fn next_sibling(&self, id: NodeId) -> Result<Option<NodeId>, Error>
Next logical sibling of a placed node, including suspended siblings. Identity validation precedes the constant-time adjacency lookup.
Sourcepub fn validate_child(
&self,
child: Subtree<'_>,
parent: Option<NodeId>,
) -> Result<(), Error>
pub fn validate_child( &self, child: Subtree<'_>, parent: Option<NodeId>, ) -> Result<(), Error>
Check a proposed parent/child relation without allocating identities or modifying state. Ordinary moves visit ancestors only; only restricted interactive/button contexts require examining the child’s live subtree.
Sourcepub fn validate_placement(
&self,
id: NodeId,
parent: Option<NodeId>,
before: Option<NodeId>,
resume: bool,
) -> Result<(), Error>
pub fn validate_placement( &self, id: NodeId, parent: Option<NodeId>, before: Option<NodeId>, resume: bool, ) -> Result<(), Error>
Read-only validation shared by App staging and direct reference apply.
Sourcepub fn dispose(&mut self, id: NodeId) -> Result<(Receipt, Vec<NodeId>), Error>
pub fn dispose(&mut self, id: NodeId) -> Result<(Receipt, Vec<NodeId>), Error>
Apply one Dispose and return its retired identities in traversal order. Adapters use the removal itself to reclaim their identity-indexed state, instead of first walking the same subtree to build a second inventory. Includes detached/suspended descendants; rejection preserves the receipt.
Source§impl Memory
impl Memory
pub fn focus_scopes(&self) -> usize
Sourcepub fn focus_scope_roots(&self) -> impl Iterator<Item = NodeId> + '_
pub fn focus_scope_roots(&self) -> impl Iterator<Item = NodeId> + '_
Only current declared roots; no visited nodes or business data.
pub fn focus_scope_nodes(&self, root: NodeId) -> Result<Option<usize>, Error>
Source§impl Memory
impl Memory
Sourcepub fn inherited_environment(
&self,
id: NodeId,
) -> Result<Option<&Environment>, Error>
pub fn inherited_environment( &self, id: NodeId, ) -> Result<Option<&Environment>, Error>
Current semantic ancestry, including unplaced and suspended nodes. The caller still applies its host’s liveness and capability rules separately.