pub enum VersionSource {
Builtin,
TomlFile(PathBuf),
Explicit(PinnedRelease),
ScrapeLatest,
}Expand description
Which hyperd release install should resolve.
The default is VersionSource::Builtin, which uses the pin baked into
the crate at compile time. Other variants override that pin.
Variants§
Builtin
Use the release baked into the crate at compile time.
TomlFile(PathBuf)
Load pinned metadata from a specific TOML file.
Explicit(PinnedRelease)
Caller-supplied release (e.g. CLI --version/--build-id flags).
ScrapeLatest
Best-effort scrape of the public releases page.
Trait Implementations§
Source§impl Clone for VersionSource
impl Clone for VersionSource
Source§fn clone(&self) -> VersionSource
fn clone(&self) -> VersionSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersionSource
impl Debug for VersionSource
Source§impl Default for VersionSource
impl Default for VersionSource
Source§fn default() -> VersionSource
fn default() -> VersionSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VersionSource
impl RefUnwindSafe for VersionSource
impl Send for VersionSource
impl Sync for VersionSource
impl Unpin for VersionSource
impl UnsafeUnpin for VersionSource
impl UnwindSafe for VersionSource
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