pub enum LibSourceSpec {
Symbol(Symbol),
Path(PathBuf),
Url(String),
Bytes(Vec<u8>),
}Expand description
A data-only library source suitable for boot receipts.
This mirrors the replayable variants of
LibSource. Host-constructed library objects
are intentionally excluded because they contain live Rust behavior, not
stable boot data.
Variants§
Symbol(Symbol)
A catalog-resolved library symbol.
Path(PathBuf)
A filesystem path.
Url(String)
A URL.
Bytes(Vec<u8>)
In-memory bytes.
Implementations§
Source§impl LibSourceSpec
impl LibSourceSpec
Trait Implementations§
Source§impl Clone for LibSourceSpec
impl Clone for LibSourceSpec
Source§fn clone(&self) -> LibSourceSpec
fn clone(&self) -> LibSourceSpec
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 LibSourceSpec
impl Debug for LibSourceSpec
impl Eq for LibSourceSpec
Source§impl From<CatalogSource> for LibSourceSpec
impl From<CatalogSource> for LibSourceSpec
Source§fn from(source: CatalogSource) -> Self
fn from(source: CatalogSource) -> Self
Converts to this type from the input type.
Source§impl From<LibSourceSpec> for LibSource
impl From<LibSourceSpec> for LibSource
Source§fn from(source: LibSourceSpec) -> Self
fn from(source: LibSourceSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LibSourceSpec
impl PartialEq for LibSourceSpec
Source§fn eq(&self, other: &LibSourceSpec) -> bool
fn eq(&self, other: &LibSourceSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibSourceSpec
Auto Trait Implementations§
impl Freeze for LibSourceSpec
impl RefUnwindSafe for LibSourceSpec
impl Send for LibSourceSpec
impl Sync for LibSourceSpec
impl Unpin for LibSourceSpec
impl UnsafeUnpin for LibSourceSpec
impl UnwindSafe for LibSourceSpec
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