pub struct EffectRequest {
pub effect_id: Option<u64>,
pub tick: u64,
pub session: Option<SessionId>,
pub operation_id: Option<String>,
pub metadata: EffectInterfaceMetadata,
pub body: EffectRequestBody,
}Expand description
One typed runtime effect request.
Fields§
§effect_id: Option<u64>Optional runtime effect id when known.
tick: u64Scheduler tick at which the request was issued.
session: Option<SessionId>Optional session scope.
operation_id: Option<String>Optional operation identity when known.
metadata: EffectInterfaceMetadataInterface metadata for the request.
body: EffectRequestBodyTyped request payload.
Implementations§
Source§impl EffectRequest
impl EffectRequest
pub fn send_decision( tick: u64, sid: SessionId, operation_id: Option<String>, role: impl Into<String>, partner: impl Into<String>, label: impl Into<String>, state: &[Value], payload: Option<Value>, ) -> Self
pub fn receive( tick: u64, session: Option<SessionId>, operation_id: Option<String>, role: impl Into<String>, partner: impl Into<String>, label: impl Into<String>, state: &[Value], payload: Value, ) -> Self
pub fn choose( tick: u64, session: Option<SessionId>, operation_id: Option<String>, role: impl Into<String>, partner: impl Into<String>, labels: &[String], state: &[Value], ) -> Self
pub fn invoke_step( tick: u64, session: Option<SessionId>, operation_id: Option<String>, role: impl Into<String>, state: &[Value], ) -> Self
pub fn acquire( tick: u64, sid: SessionId, operation_id: Option<String>, role: impl Into<String>, layer: impl Into<String>, state: &[Value], ) -> Self
pub fn release( tick: u64, sid: SessionId, operation_id: Option<String>, role: impl Into<String>, layer: impl Into<String>, evidence: &Value, state: &[Value], ) -> Self
pub fn topology_events(tick: u64) -> Self
pub fn output_condition_hint( tick: u64, sid: SessionId, operation_id: Option<String>, role: impl Into<String>, state: &[Value], ) -> Self
pub fn wal_sync( tick: u64, operation_id: impl Into<String>, sync: WalSyncRequest, ) -> Self
Trait Implementations§
Source§impl Clone for EffectRequest
impl Clone for EffectRequest
Source§fn clone(&self) -> EffectRequest
fn clone(&self) -> EffectRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 EffectRequest
impl Debug for EffectRequest
Source§impl<'de> Deserialize<'de> for EffectRequest
impl<'de> Deserialize<'de> for EffectRequest
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
Source§impl PartialEq for EffectRequest
impl PartialEq for EffectRequest
Source§impl Serialize for EffectRequest
impl Serialize for EffectRequest
impl StructuralPartialEq for EffectRequest
Auto Trait Implementations§
impl Freeze for EffectRequest
impl RefUnwindSafe for EffectRequest
impl Send for EffectRequest
impl Sync for EffectRequest
impl Unpin for EffectRequest
impl UnsafeUnpin for EffectRequest
impl UnwindSafe for EffectRequest
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.