pub enum HostDeliveryTarget {
AgentExecution {
agent_execution_id: CeremonyAgentExecutionId,
incarnation: HostAgentIncarnation,
},
Role {
role_id: RoleId,
},
IntegratorBinding {
binding_id: IntegratorBindingId,
},
}Expand description
Where one delivery is addressed.
Three shapes because a host is reachable three ways and the ledger must tell them apart: a named process generation, a seat at the table nobody has claimed yet, and a bound integrator.
Variants§
AgentExecution
One live agent execution of one host process generation.
Role
Any host that can act for a role, for a destination that pulls.
IntegratorBinding
The integrator bound to a ceremony or a system execution.
Fields
§
binding_id: IntegratorBindingIdImplementations§
Source§impl HostDeliveryTarget
impl HostDeliveryTarget
pub const fn agent_execution( agent_execution_id: CeremonyAgentExecutionId, incarnation: HostAgentIncarnation, ) -> Self
pub const fn role(role_id: RoleId) -> Self
pub const fn integrator_binding(binding_id: IntegratorBindingId) -> Self
Sourcepub fn target_key(&self) -> HostDeliveryTargetKey
pub fn target_key(&self) -> HostDeliveryTargetKey
The stable spelling this destination is stored and scanned by.
Sourcepub const fn role_id(&self) -> Option<&RoleId>
pub const fn role_id(&self) -> Option<&RoleId>
The role this destination acts for, when it names one.
Sourcepub const fn incarnation(&self) -> Option<&HostAgentIncarnation>
pub const fn incarnation(&self) -> Option<&HostAgentIncarnation>
The process generation this destination is fenced to, if any.
Sourcepub const fn binding_id(&self) -> Option<&IntegratorBindingId>
pub const fn binding_id(&self) -> Option<&IntegratorBindingId>
The binding this destination belongs to, if any.
Trait Implementations§
Source§impl Clone for HostDeliveryTarget
impl Clone for HostDeliveryTarget
Source§impl Debug for HostDeliveryTarget
impl Debug for HostDeliveryTarget
Source§impl<'de> Deserialize<'de> for HostDeliveryTarget
impl<'de> Deserialize<'de> for HostDeliveryTarget
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 HostDeliveryTarget
Source§impl Hash for HostDeliveryTarget
impl Hash for HostDeliveryTarget
Source§impl Ord for HostDeliveryTarget
impl Ord for HostDeliveryTarget
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HostDeliveryTarget
impl PartialEq for HostDeliveryTarget
Source§impl PartialOrd for HostDeliveryTarget
impl PartialOrd for HostDeliveryTarget
Source§impl Serialize for HostDeliveryTarget
impl Serialize for HostDeliveryTarget
impl StructuralPartialEq for HostDeliveryTarget
Auto Trait Implementations§
impl Freeze for HostDeliveryTarget
impl RefUnwindSafe for HostDeliveryTarget
impl Send for HostDeliveryTarget
impl Sync for HostDeliveryTarget
impl Unpin for HostDeliveryTarget
impl UnsafeUnpin for HostDeliveryTarget
impl UnwindSafe for HostDeliveryTarget
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