pub struct Runtime {
pub root: PathBuf,
pub spec: HostSpec,
/* private fields */
}Fields§
§root: PathBuf§spec: HostSpecImplementations§
Source§impl Runtime
impl Runtime
pub fn new( cache_dir: Option<PathBuf>, profiles_dir: Option<PathBuf>, progress: Option<ProgressCb>, ) -> Result<Self>
Sourcepub fn grease(&self) -> (Option<String>, Option<String>)
pub fn grease(&self) -> (Option<String>, Option<String>)
GREASE (brand, version) from the manifest (set on install()).
Sourcepub fn chromium_version(&self) -> String
pub fn chromium_version(&self) -> String
Engine chromium version (manifest-driven; set on install()).
pub fn manifest_path(&self) -> PathBuf
pub fn binary_path(&self) -> PathBuf
pub fn fingerprints_dir(&self) -> PathBuf
Sourcepub fn profiles_root(&self) -> PathBuf
pub fn profiles_root(&self) -> PathBuf
Per-profile user-data-dir root. <cache>/profiles/ unless overridden.
pub fn installed(&self) -> bool
Auto Trait Implementations§
impl !Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !UnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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
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