pub struct ScriptedModelSession { /* private fields */ }Implementations§
Source§impl ScriptedModelSession
impl ScriptedModelSession
pub fn new(responses: Vec<ModelResponse>) -> Self
pub fn requests(&self) -> Vec<ModelRequest>
Trait Implementations§
Source§impl ModelSession for ScriptedModelSession
impl ModelSession for ScriptedModelSession
fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 OperationContext,
request: ModelRequest,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, PortFailure>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for ScriptedModelSession
impl RefUnwindSafe for ScriptedModelSession
impl Send for ScriptedModelSession
impl Sync for ScriptedModelSession
impl Unpin for ScriptedModelSession
impl UnsafeUnpin for ScriptedModelSession
impl UnwindSafe for ScriptedModelSession
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