pub struct DefaultAppLocator;Expand description
Default implementation of AppLocator.
Searches for the binary in the following order:
- Compile-time embedded path (set by build.rs, if used)
- Runtime environment variable
HTML_VIEW_APP_PATH - Cargo install directory (~/.cargo/bin)
- Same directory as the current executable
- Target directory relative to workspace (for development)
Trait Implementations§
Source§impl AppLocator for DefaultAppLocator
impl AppLocator for DefaultAppLocator
Source§fn locate_app_binary(&self) -> Result<PathBuf, ViewerError>
fn locate_app_binary(&self) -> Result<PathBuf, ViewerError>
Locate the html_view_app binary.
Auto Trait Implementations§
impl Freeze for DefaultAppLocator
impl RefUnwindSafe for DefaultAppLocator
impl Send for DefaultAppLocator
impl Sync for DefaultAppLocator
impl Unpin for DefaultAppLocator
impl UnsafeUnpin for DefaultAppLocator
impl UnwindSafe for DefaultAppLocator
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