pub struct RuntimeHandle { /* private fields */ }Implementations§
Source§impl RuntimeHandle
impl RuntimeHandle
pub fn new(runtime: LashRuntime) -> Self
pub fn writer(&self) -> Arc<Mutex<LashRuntime>> ⓘ
pub fn observe(&self) -> Arc<RuntimeObservation> ⓘ
pub fn publish_from(&self, runtime: &LashRuntime)
pub async fn enqueue_turn_input( &self, input: TurnInput, delivery_policy: DeliveryPolicy, slot_policy: SlotPolicy, source_key: Option<String>, ) -> Result<QueuedWorkBatch, RuntimeError>
pub async fn cancel_queued_work_batch( &self, session_id: &str, batch_id: &str, ) -> Result<Option<QueuedWorkBatch>, RuntimeError>
pub fn try_into_runtime(self) -> Result<LashRuntime, Self>
Trait Implementations§
Source§impl Clone for RuntimeHandle
impl Clone for RuntimeHandle
Source§fn clone(&self) -> RuntimeHandle
fn clone(&self) -> RuntimeHandle
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 RuntimeHandle
impl !UnwindSafe for RuntimeHandle
impl Freeze for RuntimeHandle
impl Send for RuntimeHandle
impl Sync for RuntimeHandle
impl Unpin for RuntimeHandle
impl UnsafeUnpin for RuntimeHandle
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