pub enum LibSource {
Symbol(Symbol),
Path(PathBuf),
Url(String),
Bytes(Vec<u8>),
Host(Box<dyn Lib>),
}Expand description
Where a library is loaded from.
Variants§
Symbol(Symbol)
A catalog-resolved library symbol.
Path(PathBuf)
A filesystem path.
Url(String)
A URL.
Bytes(Vec<u8>)
In-memory bytes (e.g. an ABI frame).
Host(Box<dyn Lib>)
A host-constructed library object.
Trait Implementations§
Source§impl From<CatalogSource> for LibSource
impl From<CatalogSource> for LibSource
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.
Auto Trait Implementations§
impl !RefUnwindSafe for LibSource
impl !Send for LibSource
impl !Sync for LibSource
impl !UnwindSafe for LibSource
impl Freeze for LibSource
impl Unpin for LibSource
impl UnsafeUnpin for LibSource
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