pub struct ExpressionTreeWebSurfaceFactory { /* private fields */ }Expand description
Builds isolated browser surfaces for one authoritative expression-tree resource.
Each call to LiveSurfaceFactory::create obtains a fresh caller context
from context_factory, negotiates a fresh RemoteTransport, and owns a
separate reversible session. The opaque browser alias is mapped to exactly
one server resource, so callers cannot select another tree by editing a URL.
Implementations§
Source§impl ExpressionTreeWebSurfaceFactory
impl ExpressionTreeWebSurfaceFactory
Sourcepub fn new(
endpoint: impl Into<String>,
address: ServerAddress,
browser_resource: impl Into<String>,
authoritative_resource: Symbol,
context_factory: impl Fn() -> Result<Cx> + Send + Sync + 'static,
) -> Self
pub fn new( endpoint: impl Into<String>, address: ServerAddress, browser_resource: impl Into<String>, authoritative_resource: Symbol, context_factory: impl Fn() -> Result<Cx> + Send + Sync + 'static, ) -> Self
Creates a factory using the webui surface capability preset.
Sourcepub fn with_offered_codecs(self, offered_codecs: Vec<Symbol>) -> Self
pub fn with_offered_codecs(self, offered_codecs: Vec<Symbol>) -> Self
Selects the server frame codecs offered by every new remote transport.
Sourcepub fn with_surface_caps(self, caps: SurfaceCaps) -> Self
pub fn with_surface_caps(self, caps: SurfaceCaps) -> Self
Selects open surface capabilities for every new browser projection.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ExpressionTreeWebSurfaceFactory
impl !UnwindSafe for ExpressionTreeWebSurfaceFactory
impl Freeze for ExpressionTreeWebSurfaceFactory
impl Send for ExpressionTreeWebSurfaceFactory
impl Sync for ExpressionTreeWebSurfaceFactory
impl Unpin for ExpressionTreeWebSurfaceFactory
impl UnsafeUnpin for ExpressionTreeWebSurfaceFactory
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