pub struct RuntimeInvocation {
pub scope: RuntimeScope,
pub subject: RuntimeSubject,
pub caused_by: Option<CausalRef>,
pub replay: Option<RuntimeReplay>,
}Expand description
Canonical lineage for a runtime-side invocation.
Fields§
§scope: RuntimeScope§subject: RuntimeSubject§caused_by: Option<CausalRef>§replay: Option<RuntimeReplay>Implementations§
Source§impl RuntimeInvocation
impl RuntimeInvocation
pub fn effect( scope: RuntimeScope, effect_id: impl Into<String>, kind: RuntimeEffectKind, replay_key: impl Into<String>, ) -> Self
pub fn with_caused_by(self, caused_by: Option<CausalRef>) -> Self
pub fn effect_id(&self) -> Option<&str>
pub fn effect_kind(&self) -> Option<RuntimeEffectKind>
pub fn replay_key(&self) -> Option<&str>
pub fn causal_ref(&self) -> Option<CausalRef>
Trait Implementations§
Source§impl Clone for RuntimeInvocation
impl Clone for RuntimeInvocation
Source§fn clone(&self) -> RuntimeInvocation
fn clone(&self) -> RuntimeInvocation
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 RuntimeInvocation
impl Debug for RuntimeInvocation
Source§impl<'de> Deserialize<'de> for RuntimeInvocation
impl<'de> Deserialize<'de> for RuntimeInvocation
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 RuntimeInvocation
Source§impl PartialEq for RuntimeInvocation
impl PartialEq for RuntimeInvocation
Source§fn eq(&self, other: &RuntimeInvocation) -> bool
fn eq(&self, other: &RuntimeInvocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeInvocation
impl Serialize for RuntimeInvocation
impl StructuralPartialEq for RuntimeInvocation
Auto Trait Implementations§
impl Freeze for RuntimeInvocation
impl RefUnwindSafe for RuntimeInvocation
impl Send for RuntimeInvocation
impl Sync for RuntimeInvocation
impl Unpin for RuntimeInvocation
impl UnsafeUnpin for RuntimeInvocation
impl UnwindSafe for RuntimeInvocation
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