pub struct RuntimeObservation {
pub session_id: Arc<str>,
pub policy: SessionPolicy,
pub read_view: SessionReadView,
pub persisted_state: PersistedSessionState,
pub usage_report: SessionUsageReport,
pub tool_state: Option<ToolState>,
pub tool_catalog: Arc<Vec<Value>>,
pub runtime_scope_id: Arc<str>,
pub background_task_host: Option<Arc<dyn BackgroundTaskHost>>,
}Fields§
§session_id: Arc<str>§policy: SessionPolicy§read_view: SessionReadView§persisted_state: PersistedSessionState§usage_report: SessionUsageReport§tool_state: Option<ToolState>§tool_catalog: Arc<Vec<Value>>§runtime_scope_id: Arc<str>§background_task_host: Option<Arc<dyn BackgroundTaskHost>>Implementations§
Source§impl RuntimeObservation
impl RuntimeObservation
pub fn session_id(&self) -> &str
pub fn background_scope_key(&self) -> String
pub async fn list_background_tasks(&self) -> Vec<BackgroundTaskRecord>
Trait Implementations§
Source§impl Clone for RuntimeObservation
impl Clone for RuntimeObservation
Source§fn clone(&self) -> RuntimeObservation
fn clone(&self) -> RuntimeObservation
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 Freeze for RuntimeObservation
impl !RefUnwindSafe for RuntimeObservation
impl Send for RuntimeObservation
impl Sync for RuntimeObservation
impl Unpin for RuntimeObservation
impl UnsafeUnpin for RuntimeObservation
impl !UnwindSafe for RuntimeObservation
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