pub struct RuntimeInput { /* private fields */ }Expand description
Runtime-owned workflow or activity input terms.
The wrapper keeps the beamr term representation inside the runtime module while later lifecycle and payload code decide how durable payloads become VM terms.
Implementations§
Source§impl RuntimeInput
impl RuntimeInput
Sourcepub fn from_payload(payload: &Payload) -> Result<Self, EngineError>
pub fn from_payload(payload: &Payload) -> Result<Self, EngineError>
Convert one durable payload into the single BEAM argument used by in-VM activity dispatch.
The runtime boundary owns this representation. JSON payloads are passed as BEAM binary terms and any boxed host heap backing those terms is retained until the spawned process is observed exiting or cancelled.
§Errors
Returns EngineError::Runtime when a JSON number does not fit in an
immediate small integer.
Trait Implementations§
Source§impl Debug for RuntimeInput
impl Debug for RuntimeInput
Source§impl Default for RuntimeInput
impl Default for RuntimeInput
Source§fn default() -> RuntimeInput
fn default() -> RuntimeInput
Returns the “default value” for a type. Read more
impl Eq for RuntimeInput
Source§impl PartialEq for RuntimeInput
impl PartialEq for RuntimeInput
impl StructuralPartialEq for RuntimeInput
Auto Trait Implementations§
impl Freeze for RuntimeInput
impl RefUnwindSafe for RuntimeInput
impl Send for RuntimeInput
impl Sync for RuntimeInput
impl Unpin for RuntimeInput
impl UnsafeUnpin for RuntimeInput
impl UnwindSafe for RuntimeInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.