pub struct ModelRegistration {
pub family: &'static str,
pub description: &'static str,
pub matches: fn(arch: &str, path: &Path) -> bool,
}Expand description
Family-routing entry: a short name + a probe closure that returns
true for files this family should handle.
Registered at process start by register_model (or by a
#[rlx_runner]-generated inventory entry). auto_runner_name
walks the registry and returns the first matching family.
Fields§
§family: &'static str§description: &'static str§matches: fn(arch: &str, path: &Path) -> bool(arch_str_lower_case, path) -> bool. arch_str_lower_case is
the GGUF general.architecture ("" for safetensors); path
is the concrete weights file. Implementations should return
true if the family owns this file.
Trait Implementations§
impl Collect for ModelRegistration
Auto Trait Implementations§
impl Freeze for ModelRegistration
impl RefUnwindSafe for ModelRegistration
impl Send for ModelRegistration
impl Sync for ModelRegistration
impl Unpin for ModelRegistration
impl UnsafeUnpin for ModelRegistration
impl UnwindSafe for ModelRegistration
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more