pub struct LlamaBackend {
pub lib: Arc<LlamaLib>,
}Expand description
The initialized Llama capabilities backend. Holds the DLL handle alive.
Fields§
§lib: Arc<LlamaLib>Implementations§
Source§impl LlamaBackend
impl LlamaBackend
Sourcepub fn load(options: LoadOptions<'_>) -> Result<Self, LlamaError>
pub fn load(options: LoadOptions<'_>) -> Result<Self, LlamaError>
Load the specified backend DLL, downloading it from GitHub releases if necessary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LlamaBackend
impl RefUnwindSafe for LlamaBackend
impl Send for LlamaBackend
impl Sync for LlamaBackend
impl Unpin for LlamaBackend
impl UnsafeUnpin for LlamaBackend
impl UnwindSafe for LlamaBackend
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