pub enum ServeBinSource {
Local(PathBuf),
Pinned(BundleHash),
}Expand description
Where one serve_bins entry comes from (R746-F5).
Variants§
Local(PathBuf)
A binary on this machine’s disk — copied into the bundle tree and hashed like any other file.
Pinned(BundleHash)
A binary the store already holds, referenced by its BLAKE3 digest.
Nothing is read from local disk and nothing is copied into the bundle
tree; the manifest’s content map simply names this hash, and
publish_bundle skips it because store.head already finds the blob
(the same append-only dedupe every other file gets). This is the
mechanism that makes a template-only re-release possible on a machine
that has never built the binary at all.
Trait Implementations§
Source§impl Clone for ServeBinSource
impl Clone for ServeBinSource
Auto Trait Implementations§
impl Freeze for ServeBinSource
impl RefUnwindSafe for ServeBinSource
impl Send for ServeBinSource
impl Sync for ServeBinSource
impl Unpin for ServeBinSource
impl UnsafeUnpin for ServeBinSource
impl UnwindSafe for ServeBinSource
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