pub struct LoopDriver<S>where
S: ModelSession,{ /* private fields */ }Implementations§
Source§impl<S> LoopDriver<S>where
S: ModelSession,
impl<S> LoopDriver<S>where
S: ModelSession,
pub fn submit_input(&mut self, input: Vec<Item>) -> Result<(), LoopError>
pub fn resolve_approval( &mut self, decision: ApprovalDecision, ) -> Result<(), LoopError>
pub fn resolve_auth( &mut self, resolution: AuthResolution, ) -> Result<(), LoopError>
pub fn snapshot(&self) -> LoopSnapshot
pub async fn next(&mut self) -> Result<LoopStep, LoopError>
Auto Trait Implementations§
impl<S> Freeze for LoopDriver<S>where
S: Freeze,
impl<S> !RefUnwindSafe for LoopDriver<S>
impl<S> Send for LoopDriver<S>
impl<S> !Sync for LoopDriver<S>
impl<S> Unpin for LoopDriver<S>where
S: Unpin,
impl<S> UnsafeUnpin for LoopDriver<S>where
S: UnsafeUnpin,
impl<S> !UnwindSafe for LoopDriver<S>
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