pub struct StateControl { /* private fields */ }Implementations§
Source§impl StateControl
impl StateControl
pub async fn export(&self) -> SessionSnapshot
pub async fn append_messages(&self, messages: Vec<PluginMessage>) -> Result<()>
pub async fn append_plugin_body( &self, plugin_type: impl Into<String>, body: Value, ) -> Result<()>
pub async fn set_persisted(&self, state: RuntimeSessionState) -> Result<()>
pub async fn branch_to_node( &self, target_leaf: Option<String>, ) -> Result<SessionSnapshot>
pub async fn persist_current(&self) -> Result<RuntimeSessionState>
pub async fn session_state_service( &self, ) -> Result<Arc<dyn SessionStateService>>
pub async fn snapshot_execution(&self) -> Result<Option<Vec<u8>>>
pub async fn restore_execution(&self, bytes: &[u8]) -> Result<()>
pub async fn rewrite_history(&self, trigger: RewriteTrigger) -> Result<bool>
Trait Implementations§
Source§impl Clone for StateControl
impl Clone for StateControl
Source§fn clone(&self) -> StateControl
fn clone(&self) -> StateControl
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for StateControl
impl !UnwindSafe for StateControl
impl Freeze for StateControl
impl Send for StateControl
impl Sync for StateControl
impl Unpin for StateControl
impl UnsafeUnpin for StateControl
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