pub struct SessionStateAdmin { /* private fields */ }Implementations§
Source§impl SessionStateAdmin
impl SessionStateAdmin
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 compact_context( &self, instructions: Option<String>, scoped_effect_controller: ScopedEffectController<'_>, ) -> Result<bool>
Trait Implementations§
Source§impl Clone for SessionStateAdmin
impl Clone for SessionStateAdmin
Source§fn clone(&self) -> SessionStateAdmin
fn clone(&self) -> SessionStateAdmin
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 SessionStateAdmin
impl !UnwindSafe for SessionStateAdmin
impl Freeze for SessionStateAdmin
impl Send for SessionStateAdmin
impl Sync for SessionStateAdmin
impl Unpin for SessionStateAdmin
impl UnsafeUnpin for SessionStateAdmin
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