pub struct WireEnvelope {
pub operation_id: OperationId,
pub input_id: InputId,
pub observed_at_ms: WireU64,
pub input: KernelInput,
}Expand description
The one shape a host may hand the kernel (spec §7.1 calls it KernelEnvelope).
Everything the kernel needs about this delivery lives here and nowhere else:
operation_id— bound by the first accepted input, immutable afterwards;input_id— the caller-suppliable idempotency key (DEC-2). Retrying an intent with the same key must reach the same durable record; hosts mint one only when the caller does not;observed_at_ms— the only host clock fact. No business input, effect outcome or external event may carry a second wall clock (§11.2);input— the five-class business payload, which never repeats any of the above.
Fields§
§operation_id: OperationId§input_id: InputId§observed_at_ms: WireU64§input: KernelInputImplementations§
Source§impl WireEnvelope
impl WireEnvelope
pub fn new( operation_id: OperationId, input_id: InputId, observed_at_ms: WireU64, input: KernelInput, ) -> Self
Trait Implementations§
Source§impl Clone for WireEnvelope
impl Clone for WireEnvelope
Source§fn clone(&self) -> WireEnvelope
fn clone(&self) -> WireEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WireEnvelope
impl Debug for WireEnvelope
Source§impl<'de> Deserialize<'de> for WireEnvelope
impl<'de> Deserialize<'de> for WireEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WireEnvelope
impl PartialEq for WireEnvelope
Source§impl Serialize for WireEnvelope
impl Serialize for WireEnvelope
impl StructuralPartialEq for WireEnvelope
Auto Trait Implementations§
impl Freeze for WireEnvelope
impl RefUnwindSafe for WireEnvelope
impl Send for WireEnvelope
impl Sync for WireEnvelope
impl Unpin for WireEnvelope
impl UnsafeUnpin for WireEnvelope
impl UnwindSafe for WireEnvelope
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