pub struct LiveSessionTable { /* private fields */ }Expand description
Bounded table of isolated live browser sessions.
Implementations§
Source§impl LiveSessionTable
impl LiveSessionTable
Sourcepub fn new(factory: Box<dyn LiveSurfaceFactory + Send + Sync>) -> Self
pub fn new(factory: Box<dyn LiveSurfaceFactory + Send + Sync>) -> Self
Creates a bounded session table with the default capacity and idle TTL.
Sourcepub fn with_config(
factory: Box<dyn LiveSurfaceFactory + Send + Sync>,
config: LiveSessionTableConfig,
) -> Self
pub fn with_config( factory: Box<dyn LiveSurfaceFactory + Send + Sync>, config: LiveSessionTableConfig, ) -> Self
Creates a session table with explicit capacity and idle-expiry policy.
Sourcepub fn open(
&mut self,
session_id: Option<&str>,
resource: &str,
pane: &str,
) -> Result<(String, Expr), String>
pub fn open( &mut self, session_id: Option<&str>, resource: &str, pane: &str, ) -> Result<(String, Expr), String>
Opens a resource in a new or existing opaque browser session.
Sourcepub fn submit(
&mut self,
session_id: &str,
pane: &str,
intent: &Expr,
) -> Result<Vec<SceneUpdate>, String>
pub fn submit( &mut self, session_id: &str, pane: &str, intent: &Expr, ) -> Result<Vec<SceneUpdate>, String>
Submits one reversible Intent through an existing browser session.
Sourcepub fn close(&mut self, session_id: &str) -> Result<(), String>
pub fn close(&mut self, session_id: &str) -> Result<(), String>
Closes an opaque browser session and releases its live surface.
Auto Trait Implementations§
impl !RefUnwindSafe for LiveSessionTable
impl !Send for LiveSessionTable
impl !Sync for LiveSessionTable
impl !UnwindSafe for LiveSessionTable
impl Freeze for LiveSessionTable
impl Unpin for LiveSessionTable
impl UnsafeUnpin for LiveSessionTable
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