pub struct ProtocolPayload<'a> {
pub envelope: &'a PayloadEnvelope,
pub placement: PlacementClass,
}Expand description
One opaque contextual payload to render into the harness’s
per-event payload slot (e.g. Claude’s additionalContext).
Lifeloop does not parse or rewrite the payload body — it is
delivered as the client supplied it. The placement field is the
trust-neutral routing class the client requested for this payload;
the renderer uses it only to decide which payload slot the body goes
into and to skip payloads whose placement is not appropriate for
the target event.
Fields§
§envelope: &'a PayloadEnvelope§placement: PlacementClassImplementations§
Source§impl<'a> ProtocolPayload<'a>
impl<'a> ProtocolPayload<'a>
pub fn new(envelope: &'a PayloadEnvelope, placement: PlacementClass) -> Self
Trait Implementations§
Source§impl<'a> Clone for ProtocolPayload<'a>
impl<'a> Clone for ProtocolPayload<'a>
Source§fn clone(&self) -> ProtocolPayload<'a>
fn clone(&self) -> ProtocolPayload<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ProtocolPayload<'a>
impl<'a> RefUnwindSafe for ProtocolPayload<'a>
impl<'a> Send for ProtocolPayload<'a>
impl<'a> Sync for ProtocolPayload<'a>
impl<'a> Unpin for ProtocolPayload<'a>
impl<'a> UnsafeUnpin for ProtocolPayload<'a>
impl<'a> UnwindSafe for ProtocolPayload<'a>
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