pub struct DispatchContext {
pub focused_entity_id: Option<EntityId>,
pub selection: Vec<ResidueRef>,
pub designable: Vec<ResidueRef>,
}Expand description
Captured by the orchestrator at op-trigger time and frozen on the wire.
Streams do NOT receive an updated context mid-flight; only
UpdateStream(params) can change values during a running stream.
Fields§
§focused_entity_id: Option<EntityId>Entity the user has currently focused, or None for session
mode (no specific entity targeted).
selection: Vec<ResidueRef>Residue selection at op-trigger time.
designable: Vec<ResidueRef>Residues the plugin may redesign (change identity at), the puzzle’s
design mask. Carried alongside the selection so the engine can gate
identity changes; orthogonal to selection, which says where to
operate. Empty when the session gates no design.
Trait Implementations§
Source§impl Clone for DispatchContext
impl Clone for DispatchContext
Source§impl Debug for DispatchContext
impl Debug for DispatchContext
Auto Trait Implementations§
impl Freeze for DispatchContext
impl RefUnwindSafe for DispatchContext
impl Send for DispatchContext
impl Sync for DispatchContext
impl Unpin for DispatchContext
impl UnsafeUnpin for DispatchContext
impl UnwindSafe for DispatchContext
Blanket Implementations§
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