pub struct WebViewerData { /* private fields */ }Expand description
The contents of the files that make up the web viewer application.
Loaded once per WebViewerServer, via WebViewerData::load for the built-in assets
(which does not exist in disable_web_viewer_server builds) or via WebViewerData::from_dir
/ WebViewerData::from_archive for assets on disk.
Implementations§
Source§impl WebViewerData
impl WebViewerData
Sourcepub fn from_archive(path: &Path) -> Result<Self, WebViewerDataError>
pub fn from_archive(path: &Path) -> Result<Self, WebViewerDataError>
Load the web viewer assets from a zip archive on disk.
The archive must contain the files produced by the web viewer build
(pixi run rerun-build-web) at the archive root.
Sourcepub fn from_dir(dir: &Path) -> Result<Self, WebViewerDataError>
pub fn from_dir(dir: &Path) -> Result<Self, WebViewerDataError>
Load the web viewer assets from a directory on disk.
The directory must contain the files produced by the web viewer build
(pixi run rerun-build-web), i.e. <workspace>/crates/viewer/re_web_viewer_server/web_viewer.
Source§impl WebViewerData
impl WebViewerData
pub fn index_html(&self) -> &[u8] ⓘ
pub fn favicon(&self) -> &[u8] ⓘ
pub fn apple_touch_icon(&self) -> &[u8] ⓘ
pub fn sw_js(&self) -> &[u8] ⓘ
pub fn viewer_js(&self) -> &[u8] ⓘ
pub fn viewer_wasm(&self) -> &[u8] ⓘ
pub fn signed_in_html(&self) -> &[u8] ⓘ
pub fn signed_out_html(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebViewerData
impl RefUnwindSafe for WebViewerData
impl Send for WebViewerData
impl Sync for WebViewerData
impl Unpin for WebViewerData
impl UnsafeUnpin for WebViewerData
impl UnwindSafe for WebViewerData
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more