pub struct SimulationSession { /* private fields */ }Implementations§
Source§impl SimulationSession
impl SimulationSession
pub fn new<T, TF, O, OF, C, CF>(turn: T, observe: O, close: C) -> Selfwhere
T: Fn(Value, EvaluationContext) -> TF + Send + Sync + 'static,
TF: Future<Output = Result<Value, String>> + Send + 'static,
O: Fn() -> OF + Send + Sync + 'static,
OF: Future<Output = Result<Value, String>> + Send + 'static,
C: Fn() -> CF + Send + Sync + 'static,
CF: Future<Output = Result<(), String>> + Send + 'static,
Trait Implementations§
Source§impl Drop for SimulationSession
impl Drop for SimulationSession
Auto Trait Implementations§
impl !RefUnwindSafe for SimulationSession
impl !UnwindSafe for SimulationSession
impl Freeze for SimulationSession
impl Send for SimulationSession
impl Sync for SimulationSession
impl Unpin for SimulationSession
impl UnsafeUnpin for SimulationSession
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