pub struct LashSession { /* private fields */ }Implementations§
Source§impl LashSession
impl LashSession
pub async fn close(self) -> Result<()>
pub fn session_id(&self) -> String
pub fn policy_snapshot(&self) -> SessionPolicy
pub fn observe(&self) -> ObservableSession
pub fn mode(&self) -> &ModeId
pub fn parent_session_id(&self) -> Option<&str>
pub async fn run(&self, input: TurnInput) -> Result<TurnOutput>
pub fn turn(&self, input: TurnInput) -> TurnBuilder
pub fn next_queued_turn(&self) -> QueuedTurnBuilder
pub fn control(&self) -> SessionControl
pub async fn configure(&self, patch: SessionConfigPatch) -> Result<()>
pub fn tools(&self) -> ToolsControl
pub fn commands(&self) -> SessionCommandsControl
pub fn triggers(&self) -> TriggersControl
pub fn process_control(&self) -> ProcessControl
pub fn plugin_actions(&self) -> PluginActions
pub fn queue(&self, input: TurnInput) -> QueueInputBuilder<'_>
pub async fn queued_work(&self) -> Result<Vec<QueuedWorkBatch>>
pub async fn cancel_queued_work_batch( &self, batch_id: &str, ) -> Result<Option<QueuedWorkBatch>>
pub fn read_view(&self) -> SessionReadView
pub fn usage_report(&self) -> SessionUsageReport
pub async fn set_turn_phase_probe(&self, probe: Arc<dyn RuntimeTurnPhaseProbe>)
Trait Implementations§
Source§impl Clone for LashSession
impl Clone for LashSession
Source§fn clone(&self) -> LashSession
fn clone(&self) -> LashSession
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 LashSession
impl !UnwindSafe for LashSession
impl Freeze for LashSession
impl Send for LashSession
impl Sync for LashSession
impl Unpin for LashSession
impl UnsafeUnpin for LashSession
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