pub struct LiveSession { /* private fields */ }Expand description
A server-held live session: a Session over a deterministic in-memory
FixtureTransport, its LensRegistry (with the universal default lens
registered), and the runtime Cx used to render Scenes.
The blocking HTTP server is single-threaded, so the shell owns one of these
directly and serves every request against it in turn; no lock is needed. A
multi-threaded server would hold this behind a Mutex.
Implementations§
Source§impl LiveSession
impl LiveSession
Sourcepub fn new() -> SimResult<Self>
pub fn new() -> SimResult<Self>
Build a live session, seed the demo resource, and open it into the default pane so Intents can be submitted immediately.
Auto Trait Implementations§
impl !RefUnwindSafe for LiveSession
impl !UnwindSafe for LiveSession
impl Freeze for LiveSession
impl Send for LiveSession
impl Sync for LiveSession
impl Unpin for LiveSession
impl UnsafeUnpin for LiveSession
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