Skip to main content

Request

Struct Request 

Source
pub struct Request<'a> {
    pub pkg_root: &'a Path,
    pub lib_dirs: &'a [&'a str],
    pub policy: HostLibsPolicy,
    pub store: &'a Path,
    pub ld_cache: &'a Path,
    pub icd_dirs: &'a [&'a str],
    pub extra_root: Option<&'a Path>,
    pub set_roots: &'a [PathBuf],
    pub host_libc: bool,
}
Expand description

One launch’s inputs.

Fields§

§pkg_root: &'a Path

The package root as the entrypoint will see it.

§lib_dirs: &'a [&'a str]

Library directories relative to pkg_root.

§policy: HostLibsPolicy§store: &'a Path

Where the link farm and the recorded decision live. Created on demand; reused across launches of the same package on the same host.

§ld_cache: &'a Path

The loader cache image describing the host.

§icd_dirs: &'a [&'a str]

Directories of Vulkan ICD and EGL vendor files describing the host’s drivers. ICD_DIRS outside of tests.

§extra_root: Option<&'a Path>

A fetched GL build’s extracted root, indexed ahead of the host: its GL_BUILD_LIB_DIRS and GL_BUILD_ICD_DIRS supply what the host could not.

§set_roots: &'a [PathBuf]

Extracted roots of the dependency sets the package pins. Their libraries are the ones the bundle left out, so they are compared against the host exactly as a bundled copy would be.

§host_libc: bool

Whether the launch can place host files over their bundled copies. Without that the host’s glibc is never chosen: the bundled executables’ run path would still find the bundled libc, and it cannot run under the host loader.

Auto Trait Implementations§

§

impl<'a> Freeze for Request<'a>

§

impl<'a> RefUnwindSafe for Request<'a>

§

impl<'a> Send for Request<'a>

§

impl<'a> Sync for Request<'a>

§

impl<'a> Unpin for Request<'a>

§

impl<'a> UnsafeUnpin for Request<'a>

§

impl<'a> UnwindSafe for Request<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.