pub enum ModelsMode {
List,
Search {
query: String,
results: Vec<SearchResult>,
sort_by: SearchSort,
show_readme: bool,
page: usize,
loading: bool,
has_more: bool,
},
Files {
model_id: String,
files: Vec<(String, u64, String)>,
selected_idx: Option<usize>,
previous_query: String,
previous_results: Vec<SearchResult>,
selected_result: Option<SearchResult>,
},
BenchTune,
}Expand description
Mode for the models panel.
Variants§
List
Normal mode: list of local models.
Search
Search mode: searching HuggingFace.
Files
Files mode: listing available GGUF files for a model.
BenchTune
Benchmark tuning mode: running bench_tune on a model.
Trait Implementations§
Source§impl Clone for ModelsMode
impl Clone for ModelsMode
Source§fn clone(&self) -> ModelsMode
fn clone(&self) -> ModelsMode
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 moreAuto Trait Implementations§
impl Freeze for ModelsMode
impl RefUnwindSafe for ModelsMode
impl Send for ModelsMode
impl Sync for ModelsMode
impl Unpin for ModelsMode
impl UnsafeUnpin for ModelsMode
impl UnwindSafe for ModelsMode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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