pub enum DispatchRecipient {
Authorization {
semantics_digest: String,
},
Actor {
binding_id: String,
runtime_id: String,
},
Script {
runtime_id: String,
entry: String,
},
WorksetItem {
item_id: String,
binding_ordinal: u8,
},
}Expand description
Who performs one dispatched effect. The recipient is frozen into the dispatch intent so routing cannot drift between admission and execution.
Variants§
Authorization
Authority itself is the effect: the grant is committed before any actor may run, so the authorization command has no external destination.
Actor
A bound actor turn through one runtime slot.
Script
A named script entry through one runtime slot.
WorksetItem
One item of a workset template.
Implementations§
Source§impl DispatchRecipient
impl DispatchRecipient
Sourcepub const fn command_kind(&self) -> CommandKind
pub const fn command_kind(&self) -> CommandKind
The CommandKind this recipient is only ever routed for.
Sourcepub fn routing_key(&self) -> String
pub fn routing_key(&self) -> String
The stable routing key: kind plus destination. Two intents with the same key are the same delivery target and must serialize on one claim.
Trait Implementations§
Source§impl Clone for DispatchRecipient
impl Clone for DispatchRecipient
Source§fn clone(&self) -> DispatchRecipient
fn clone(&self) -> DispatchRecipient
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 DispatchRecipient
impl Debug for DispatchRecipient
Source§impl<'de> Deserialize<'de> for DispatchRecipient
impl<'de> Deserialize<'de> for DispatchRecipient
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchRecipient, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchRecipient, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DispatchRecipient
Source§impl PartialEq for DispatchRecipient
impl PartialEq for DispatchRecipient
Source§impl Serialize for DispatchRecipient
impl Serialize for DispatchRecipient
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DispatchRecipient
Auto Trait Implementations§
impl Forget for DispatchRecipient
impl Freeze for DispatchRecipient
impl Move for DispatchRecipient
impl RefUnwindSafe for DispatchRecipient
impl Send for DispatchRecipient
impl Sync for DispatchRecipient
impl Unpin for DispatchRecipient
impl UnsafeUnpin for DispatchRecipient
impl UnwindSafe for DispatchRecipient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.