pub struct NamedRoute {
pub name: String,
pub max_parallel: Option<usize>,
pub group: Option<String>,
pub config: ProviderConfig,
}Expand description
A route with its name attached and the route table itself stripped off, so what is left is exactly one provider’s settings.
Fields§
§name: String§max_parallel: Option<usize>[[provider.route]] max_parallel (#171); None takes the profile’s default.
group: Option<String>[[provider.route]] group (#171): routes that are one server’s worth of slots.
config: ProviderConfigImplementations§
Source§impl NamedRoute
impl NamedRoute
Sourcepub fn default_parallel(&self) -> usize
pub fn default_parallel(&self) -> usize
What a flare run may assume about this route when the config says nothing: a local server serves one model at a time (llama-swap swaps rather than multiplying), and an API’s limit is rate and spend. The profile name is the only signal the config gives, so it is the one used — guessing from a port would be a rule nobody could read out of the file.
Trait Implementations§
Source§impl Clone for NamedRoute
impl Clone for NamedRoute
Source§impl Debug for NamedRoute
impl Debug for NamedRoute
Source§impl PartialEq for NamedRoute
impl PartialEq for NamedRoute
impl StructuralPartialEq for NamedRoute
Auto Trait Implementations§
impl Forget for NamedRoute
impl Freeze for NamedRoutewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<RouteConfig>: Freeze,
impl Move for NamedRoute
impl RefUnwindSafe for NamedRoute
impl Send for NamedRoute
impl Sync for NamedRoute
impl Unpin for NamedRoute
impl UnsafeUnpin for NamedRoutewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<RouteConfig>: UnsafeUnpin,
impl UnwindSafe for NamedRoute
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