pub struct WebViewerServerHandle { /* private fields */ }Expand description
Sync handle for the WebViewerServer
When dropped, the server will be shut down.
Implementations§
source§impl WebViewerServerHandle
impl WebViewerServerHandle
sourcepub fn new(
bind_ip: &str,
requested_port: WebViewerServerPort
) -> Result<Self, WebViewerServerError>
pub fn new( bind_ip: &str, requested_port: WebViewerServerPort ) -> Result<Self, WebViewerServerError>
Create new WebViewerServer to host the Rerun Web Viewer on a specified port.
Returns a WebViewerServerHandle that will shutdown the server when dropped.
A port of 0 will let the OS choose a free port.
The caller needs to ensure that there is a tokio runtime running.
sourcepub fn server_url(&self) -> String
pub fn server_url(&self) -> String
Includes http:// prefix
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebViewerServerHandle
impl Send for WebViewerServerHandle
impl Sync for WebViewerServerHandle
impl Unpin for WebViewerServerHandle
impl !UnwindSafe for WebViewerServerHandle
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