pub struct RunAddress {
pub target: RunAddressTarget,
pub destination_ref: DestinationRef,
pub related_refs: Vec<EntityRef>,
}Expand description
Holds run address application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§target: RunAddressTargetTarget used by this record or request.
destination_ref: DestinationRefTyped destination reference that records where this item is being sent or projected.
Typed related refs references. Resolving them is separate from constructing this record.
Implementations§
Source§impl RunAddress
impl RunAddress
Sourcepub fn run(run_id: RunId) -> Self
pub fn run(run_id: RunId) -> Self
Builds the run value with the documented defaults. This uses only local coordinator state and performs no hidden host work.
Sourcepub fn agent(agent_id: AgentId) -> Self
pub fn agent(agent_id: AgentId) -> Self
Returns agent for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Sourcepub fn topic(topic_id: TopicId) -> Self
pub fn topic(topic_id: TopicId) -> Self
Returns an updated value with topic configured. This sets the topic id on the address/filter value and performs no subscription by itself.
Sourcepub fn pool(pool_id: AgentPoolId) -> Self
pub fn pool(pool_id: AgentPoolId) -> Self
Builds the pool value with the documented defaults. This uses only local coordinator state and performs no hidden host work.
Trait Implementations§
Source§impl Clone for RunAddress
impl Clone for RunAddress
Source§fn clone(&self) -> RunAddress
fn clone(&self) -> RunAddress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunAddress
impl Debug for RunAddress
Source§impl<'de> Deserialize<'de> for RunAddress
impl<'de> Deserialize<'de> for RunAddress
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>,
impl Eq for RunAddress
Source§impl PartialEq for RunAddress
impl PartialEq for RunAddress
Source§fn eq(&self, other: &RunAddress) -> bool
fn eq(&self, other: &RunAddress) -> bool
self and other values to be equal, and is used by ==.