pub struct DispatchIntent {
pub run_id: String,
pub command_id: String,
pub attempt_token: String,
pub kind: CommandKind,
pub recipient: DispatchRecipient,
pub state_id: String,
pub state_visit: u64,
pub input_digest: String,
pub grant_digest: Option<String>,
}Expand description
The durable record committed before an effect leaves the host.
Fields§
§run_id: String§command_id: String§attempt_token: String§kind: CommandKind§recipient: DispatchRecipient§state_id: String§state_visit: u64§input_digest: String§grant_digest: Option<String>Digest of the committed authority this dispatch runs under. None means
no authority has been committed, which refuses the dispatch rather than
letting an adapter find out later.
Implementations§
Source§impl DispatchIntent
impl DispatchIntent
Sourcepub fn routing_matches_kind(&self) -> bool
pub fn routing_matches_kind(&self) -> bool
A dispatch intent may only be committed when its kind and recipient agree. This is the kind+recipient routing invariant, checked once here instead of at each adapter.
Sourcepub fn attempt_identity(&self) -> String
pub fn attempt_identity(&self) -> String
Identity of one exact effect attempt. A completion that does not carry this exact identity is a late or duplicated owner result.
Trait Implementations§
Source§impl Clone for DispatchIntent
impl Clone for DispatchIntent
Source§fn clone(&self) -> DispatchIntent
fn clone(&self) -> DispatchIntent
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 DispatchIntent
impl Debug for DispatchIntent
Source§impl<'de> Deserialize<'de> for DispatchIntent
impl<'de> Deserialize<'de> for DispatchIntent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchIntent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DispatchIntent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DispatchIntent
Source§impl PartialEq for DispatchIntent
impl PartialEq for DispatchIntent
Source§impl Serialize for DispatchIntent
impl Serialize for DispatchIntent
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 DispatchIntent
Auto Trait Implementations§
impl Forget for DispatchIntent
impl Freeze for DispatchIntent
impl Move for DispatchIntent
impl RefUnwindSafe for DispatchIntent
impl Send for DispatchIntent
impl Sync for DispatchIntent
impl Unpin for DispatchIntent
impl UnsafeUnpin for DispatchIntent
impl UnwindSafe for DispatchIntent
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.