pub struct LoadedSession { /* private fields */ }Expand description
A validated persisted session loaded once before runtime construction.
The runtime owns the complete session state. Surface adapters may load and
validate a session before transferring this handle into
crate::RuntimeBuilder without loading the session a second time.
Implementations§
Source§impl LoadedSession
impl LoadedSession
Sourcepub async fn load(
store: &FileSessionStore,
session_id: &SessionId,
) -> Result<Self, RuntimeError>
pub async fn load( store: &FileSessionStore, session_id: &SessionId, ) -> Result<Self, RuntimeError>
Loads and validates one session from the supplied store.
Auto Trait Implementations§
impl Forget for LoadedSession
impl Freeze for LoadedSessionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<MemoryId, MemoryItem> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(MemoryId, MemoryItem)>>: Freeze,
PhantomData<SkillMetadata>: Freeze,
PhantomData<SkillLoadWarning>: Freeze,
PhantomData<CheckpointRef>: Freeze,
PhantomData<ContextEntry>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
PhantomData<ActivatedMemory>: Freeze,
PhantomData<PlanDocumentSummary>: Freeze,
*const LeafNode<PlanId, String> is !null: Freeze,
PhantomData<Box<(PlanId, String)>>: Freeze,
PhantomData<TodoItem>: Freeze,
PhantomData<TranscriptItem>: Freeze,
*const LeafNode<ToolCallId, usize> is !null: Freeze,
PhantomData<Box<(ToolCallId, usize)>>: Freeze,
*const LeafNode<ModelTurnId, ModelTurnStatus> is !null: Freeze,
PhantomData<Box<(ModelTurnId, ModelTurnStatus)>>: Freeze,
*const LeafNode<ModelTurnId, u64> is !null: Freeze,
PhantomData<Box<(ModelTurnId, u64)>>: Freeze,
PhantomData<PendingToolCall>: Freeze,
*const LeafNode<ToolCallId, SetValZST> is !null: Freeze,
PhantomData<Box<(ToolCallId, SetValZST)>>: Freeze,
NonZero<u64>: Freeze,
PhantomData<SessionToolCatalogEntry>: Freeze,
*const ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: Freeze,
*const Header is !null: Freeze,
PhantomData<()>: Freeze,
PhantomData<PersistedSubagentRecord>: Freeze,
*const LeafNode<u64, SetValZST> is !null: Freeze,
PhantomData<Box<(u64, SetValZST)>>: Freeze,
PhantomData<JournalContextEntry>: Freeze,
*const LeafNode<ModelTurnId, FlushedModelTurn> is !null: Freeze,
PhantomData<Box<(ModelTurnId, FlushedModelTurn)>>: Freeze,
impl Move for LoadedSession
impl RefUnwindSafe for LoadedSessionwhere
Atomic<usize>: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
CancellationToken: RefUnwindSafe,
JoinHandle<()>: RefUnwindSafe,
impl Send for LoadedSessionwhere
RawVecInner: Send,
NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Send,
BoxRaw<(MemoryId, MemoryItem)>: Send,
&'static str: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
NodeRef<Owned, PlanId, String, LeafOrInternal>: Send,
BoxRaw<(PlanId, String)>: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
Arc<ToolOutput>: Send,
NodeRef<Owned, ToolCallId, usize, LeafOrInternal>: Send,
BoxRaw<(ToolCallId, usize)>: Send,
NodeRef<Owned, ModelTurnId, ModelTurnStatus, LeafOrInternal>: Send,
BoxRaw<(ModelTurnId, ModelTurnStatus)>: Send,
NodeRef<Owned, ModelTurnId, u64, LeafOrInternal>: Send,
BoxRaw<(ModelTurnId, u64)>: Send,
NodeRef<Owned, ToolCallId, SetValZST, LeafOrInternal>: Send,
BoxRaw<(ToolCallId, SetValZST)>: Send,
NonZero<u64>: Send,
Arc<TreeNode>: Send,
JoinHandle<()>: Send,
NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Send,
BoxRaw<(u64, SetValZST)>: Send,
NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Send,
BoxRaw<(ModelTurnId, FlushedModelTurn)>: Send,
impl Sync for LoadedSessionwhere
RawVecInner: Sync,
NodeRef<Owned, MemoryId, MemoryItem, LeafOrInternal>: Sync,
BoxRaw<(MemoryId, MemoryItem)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, PlanId, String, LeafOrInternal>: Sync,
BoxRaw<(PlanId, String)>: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
Arc<ToolOutput>: Sync,
NodeRef<Owned, ToolCallId, usize, LeafOrInternal>: Sync,
BoxRaw<(ToolCallId, usize)>: Sync,
NodeRef<Owned, ModelTurnId, ModelTurnStatus, LeafOrInternal>: Sync,
BoxRaw<(ModelTurnId, ModelTurnStatus)>: Sync,
NodeRef<Owned, ModelTurnId, u64, LeafOrInternal>: Sync,
BoxRaw<(ModelTurnId, u64)>: Sync,
NodeRef<Owned, ToolCallId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(ToolCallId, SetValZST)>: Sync,
NonZero<u64>: Sync,
Arc<TreeNode>: Sync,
JoinHandle<()>: Sync,
NodeRef<Owned, u64, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(u64, SetValZST)>: Sync,
NodeRef<Owned, ModelTurnId, FlushedModelTurn, LeafOrInternal>: Sync,
BoxRaw<(ModelTurnId, FlushedModelTurn)>: Sync,
impl Unpin for LoadedSessionwhere
*const u8 is !null: Unpin,
*const LeafNode<MemoryId, MemoryItem> is !null: Unpin,
Box<(MemoryId, MemoryItem)>: Unpin,
&'static str: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
*const LeafNode<PlanId, String> is !null: Unpin,
Box<(PlanId, String)>: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
Arc<ToolOutput>: Unpin,
*const LeafNode<ToolCallId, usize> is !null: Unpin,
Box<(ToolCallId, usize)>: Unpin,
*const LeafNode<ModelTurnId, ModelTurnStatus> is !null: Unpin,
Box<(ModelTurnId, ModelTurnStatus)>: Unpin,
*const LeafNode<ModelTurnId, u64> is !null: Unpin,
Box<(ModelTurnId, u64)>: Unpin,
*const LeafNode<ToolCallId, SetValZST> is !null: Unpin,
Box<(ToolCallId, SetValZST)>: Unpin,
NonZero<u64>: Unpin,
Arc<TreeNode>: Unpin,
JoinHandle<()>: Unpin,
*const LeafNode<u64, SetValZST> is !null: Unpin,
Box<(u64, SetValZST)>: Unpin,
*const LeafNode<ModelTurnId, FlushedModelTurn> is !null: Unpin,
Box<(ModelTurnId, FlushedModelTurn)>: Unpin,
impl UnsafeUnpin for LoadedSessionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<MemoryId, MemoryItem> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(MemoryId, MemoryItem)>>: UnsafeUnpin,
PhantomData<SkillMetadata>: UnsafeUnpin,
PhantomData<SkillLoadWarning>: UnsafeUnpin,
PhantomData<CheckpointRef>: UnsafeUnpin,
PhantomData<ContextEntry>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
PhantomData<ActivatedMemory>: UnsafeUnpin,
PhantomData<PlanDocumentSummary>: UnsafeUnpin,
*const LeafNode<PlanId, String> is !null: UnsafeUnpin,
PhantomData<Box<(PlanId, String)>>: UnsafeUnpin,
PhantomData<TodoItem>: UnsafeUnpin,
PhantomData<TranscriptItem>: UnsafeUnpin,
*const LeafNode<ToolCallId, usize> is !null: UnsafeUnpin,
PhantomData<Box<(ToolCallId, usize)>>: UnsafeUnpin,
*const LeafNode<ModelTurnId, ModelTurnStatus> is !null: UnsafeUnpin,
PhantomData<Box<(ModelTurnId, ModelTurnStatus)>>: UnsafeUnpin,
*const LeafNode<ModelTurnId, u64> is !null: UnsafeUnpin,
PhantomData<Box<(ModelTurnId, u64)>>: UnsafeUnpin,
PhantomData<PendingToolCall>: UnsafeUnpin,
*const LeafNode<ToolCallId, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(ToolCallId, SetValZST)>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<SessionToolCatalogEntry>: UnsafeUnpin,
*const ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<()>: UnsafeUnpin,
PhantomData<PersistedSubagentRecord>: UnsafeUnpin,
*const LeafNode<u64, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(u64, SetValZST)>>: UnsafeUnpin,
PhantomData<JournalContextEntry>: UnsafeUnpin,
*const LeafNode<ModelTurnId, FlushedModelTurn> is !null: UnsafeUnpin,
PhantomData<Box<(ModelTurnId, FlushedModelTurn)>>: UnsafeUnpin,
impl UnwindSafe for LoadedSessionwhere
RawVecInner: UnwindSafe,
BTreeMap<MemoryId, MemoryItem>: UnwindSafe,
&'static str: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<PlanId, String>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Arc<ToolOutput>: UnwindSafe,
BTreeMap<ToolCallId, usize>: UnwindSafe,
BTreeMap<ModelTurnId, ModelTurnStatus>: UnwindSafe,
BTreeMap<ModelTurnId, u64>: UnwindSafe,
BTreeMap<ToolCallId, SetValZST>: UnwindSafe,
NonZero<u64>: UnwindSafe,
CancellationToken: UnwindSafe,
JoinHandle<()>: UnwindSafe,
BTreeMap<u64, SetValZST>: UnwindSafe,
BTreeMap<ModelTurnId, FlushedModelTurn>: UnwindSafe,
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