pub struct Precompiler { /* private fields */ }Expand description
An engine and compiled-forms handle for storing the forms of installed artifacts.
Implementations§
Source§impl Precompiler
impl Precompiler
Sourcepub fn new(capsule_writable: Option<&Path>) -> Option<Self>
pub fn new(capsule_writable: Option<&Path>) -> Option<Self>
A precompiler whose forms are withheld, as a launch withholds them, when the murmur home or
~/.murmur/compiled is reachable from capsule_writable, the directory the consuming
capsule’s writable root is created in. None for a writer that stages no capsule, such as
an install into the global store. None when the engine cannot be built.
Sourcepub fn precompile(
&self,
name: &str,
version: &str,
payload: &[u8],
) -> Precompiled
pub fn precompile( &self, name: &str, version: &str, payload: &[u8], ) -> Precompiled
Stores the compiled form of the artifact name@version whose payload is payload, unless a
usable one is already stored. Never fails, panics or prints: whatever the outcome, a launch
that stages payload behaves as it would have without this call, only faster when it
returns Precompiled::Compiled or Precompiled::AlreadyStored.
Eligible payloads are those whose packed manifest resolves to wasm execution in any role but
capsule: a capsule’s own component is staged under the sha256 of the component, not of
its payload. The role itself is left open because staging takes it from the consuming
manifest’s entry, not from the packed runtime:.
Auto Trait Implementations§
impl !RefUnwindSafe for Precompiler
impl !UnwindSafe for Precompiler
impl Freeze for Precompiler
impl Send for Precompiler
impl Sync for Precompiler
impl Unpin for Precompiler
impl UnsafeUnpin for Precompiler
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
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> ⓘ
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> ⓘ
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