pub struct ValueStore { /* private fields */ }Expand description
The engine-owned store of pin values (the dataflow profile’s IO surface).
Values are type-erased (Arc<dyn Any>) and are never serialized — suspension
snapshots restore pin values through waiting_inputs re-injection only.
Implementations§
Source§impl ValueStore
impl ValueStore
Sourcepub fn get_output(&self, pin: OutputPin) -> Option<&BspValue>
pub fn get_output(&self, pin: OutputPin) -> Option<&BspValue>
Returns the value currently held by an output pin, if any.
Sourcepub fn get_output_typed<T: Any + Send + Sync + Clone>(
&self,
pin: OutputPin,
) -> Option<T>
pub fn get_output_typed<T: Any + Send + Sync + Clone>( &self, pin: OutputPin, ) -> Option<T>
Returns the value currently held by an output pin, downcast to T.
Sourcepub const fn outputs(&self) -> &IndexMap<OutputPin, BspValue>
pub const fn outputs(&self) -> &IndexMap<OutputPin, BspValue>
The full map of output-pin values written so far.
Sourcepub fn get_injected(&self, pin: InputPin) -> Option<&BspValue>
pub fn get_injected(&self, pin: InputPin) -> Option<&BspValue>
Returns a value injected into an input pin (e.g. by a resume injection), if any.
Sourcepub const fn injected(&self) -> &IndexMap<InputPin, BspValue>
pub const fn injected(&self) -> &IndexMap<InputPin, BspValue>
The full map of injected input-pin values.
Trait Implementations§
Source§impl Debug for ValueStore
impl Debug for ValueStore
Auto Trait Implementations§
impl !RefUnwindSafe for ValueStore
impl !UnwindSafe for ValueStore
impl Freeze for ValueStore
impl Send for ValueStore
impl Sync for ValueStore
impl Unpin for ValueStore
impl UnsafeUnpin for ValueStore
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