pub struct TurnExecution { /* private fields */ }Expand description
Default stateful implementation of the shared turn execution contract.
Immediate hosts keep this value in memory for the turn lifetime. Durable hosts serialize its state between activities and restore it before the next transition.
Implementations§
Source§impl TurnExecution
impl TurnExecution
Sourcepub fn new(state: TurnState) -> TurnExecution
pub fn new(state: TurnState) -> TurnExecution
Start or restore an execution from its engine state.
Sourcepub fn into_state(self) -> TurnState
pub fn into_state(self) -> TurnState
Consume the execution and return its checkpoint value.
Trait Implementations§
Source§impl Clone for TurnExecution
impl Clone for TurnExecution
Source§fn clone(&self) -> TurnExecution
fn clone(&self) -> TurnExecution
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 TurnExecution
impl Debug for TurnExecution
Source§impl<'de> Deserialize<'de> for TurnExecution
impl<'de> Deserialize<'de> for TurnExecution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TurnExecution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TurnExecution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Execution for TurnExecution
impl Execution for TurnExecution
Source§impl Serialize for TurnExecution
impl Serialize for TurnExecution
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
Auto Trait Implementations§
impl Freeze for TurnExecution
impl RefUnwindSafe for TurnExecution
impl Send for TurnExecution
impl Sync for TurnExecution
impl Unpin for TurnExecution
impl UnsafeUnpin for TurnExecution
impl UnwindSafe for TurnExecution
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