pub struct HostActivationEnvelope { /* private fields */ }Expand description
What an activated host is told, and the whole of it.
The envelope crosses into a process the engine does not control, so it carries identity, cause and references — never a secret, never the engine’s reasoning, and never anything an adapter could mistake for an instruction to run. What the host does next it does through the engine’s own commands, under their own authorization.
Implementations§
Source§impl HostActivationEnvelope
impl HostActivationEnvelope
pub const fn new( delivery_id: HostDeliveryId, binding_id: IntegratorBindingId, fence: IntegratorFence, item: HostDeliveryItem, ceremony_id: CeremonyId, kind: AttentionKind, reason: AttentionReason, emitted_at: OffsetDateTime, ) -> Self
Sourcepub fn about(self, attention: AttentionSummary) -> Self
pub fn about(self, attention: AttentionSummary) -> Self
The projected attention behind this hand-off, summarised.
Sourcepub fn at_step(self, step_id: StepId) -> Self
pub fn at_step(self, step_id: StepId) -> Self
The step the hand-off is about, when it is about one.
Sourcepub fn with_evidence(
self,
evidence: impl IntoIterator<Item = EvidenceReference>,
) -> Self
pub fn with_evidence( self, evidence: impl IntoIterator<Item = EvidenceReference>, ) -> Self
References a host may fetch under its own authorization.
Sourcepub fn caused_by(
self,
correlation_id: Option<EventId>,
causation_id: Option<EventId>,
) -> Self
pub fn caused_by( self, correlation_id: Option<EventId>, causation_id: Option<EventId>, ) -> Self
The trail this hand-off belongs to.
pub const fn delivery_id(&self) -> &HostDeliveryId
pub const fn binding_id(&self) -> &IntegratorBindingId
pub const fn fence(&self) -> IntegratorFence
pub const fn item(&self) -> &HostDeliveryItem
pub const fn attention(&self) -> Option<&AttentionSummary>
pub const fn ceremony_id(&self) -> &CeremonyId
pub const fn step_id(&self) -> Option<&StepId>
pub const fn kind(&self) -> AttentionKind
pub const fn reason(&self) -> &AttentionReason
pub fn evidence(&self) -> &[EvidenceReference]
pub const fn emitted_at(&self) -> OffsetDateTime
pub const fn correlation_id(&self) -> Option<&EventId>
pub const fn causation_id(&self) -> Option<&EventId>
Trait Implementations§
Source§impl Clone for HostActivationEnvelope
impl Clone for HostActivationEnvelope
Source§impl Debug for HostActivationEnvelope
impl Debug for HostActivationEnvelope
Source§impl<'de> Deserialize<'de> for HostActivationEnvelope
impl<'de> Deserialize<'de> for HostActivationEnvelope
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
impl Eq for HostActivationEnvelope
Source§impl PartialEq for HostActivationEnvelope
impl PartialEq for HostActivationEnvelope
Source§impl Serialize for HostActivationEnvelope
impl Serialize for HostActivationEnvelope
impl StructuralPartialEq for HostActivationEnvelope
Auto Trait Implementations§
impl Freeze for HostActivationEnvelope
impl RefUnwindSafe for HostActivationEnvelope
impl Send for HostActivationEnvelope
impl Sync for HostActivationEnvelope
impl Unpin for HostActivationEnvelope
impl UnsafeUnpin for HostActivationEnvelope
impl UnwindSafe for HostActivationEnvelope
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