pub struct PoolCreate { /* private fields */ }Expand description
Creates a pool. Build with Pools::create.
Implementations§
Source§impl PoolCreate
impl PoolCreate
Sourcepub fn gpus(self, gpus: impl IntoIterator<Item = (String, u32)>) -> Self
pub fn gpus(self, gpus: impl IntoIterator<Item = (String, u32)>) -> Self
How many workers of each GPU type the pool reserves.
Sourcepub fn gpu_caps(self, caps: impl IntoIterator<Item = (String, u32)>) -> Self
pub fn gpu_caps(self, caps: impl IntoIterator<Item = (String, u32)>) -> Self
Ceiling on assigned workers per GPU type.
Sourcepub fn queue_pool(self, queue_pool: impl Into<String>) -> Self
pub fn queue_pool(self, queue_pool: impl Into<String>) -> Self
Which queue pool the workers draw from. Defaults to default server-side.
Sourcepub fn minimum_worker_count(self, count: u32) -> Self
pub fn minimum_worker_count(self, count: u32) -> Self
Workers to keep warm. Zero, the default, allows scaling to zero.
Sourcepub fn pinned_models(
self,
models: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn pinned_models( self, models: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Models to keep resident, as model or model:profile.
Trait Implementations§
Source§impl Clone for PoolCreate
impl Clone for PoolCreate
Source§fn clone(&self) -> PoolCreate
fn clone(&self) -> PoolCreate
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 !RefUnwindSafe for PoolCreate
impl !UnwindSafe for PoolCreate
impl Freeze for PoolCreate
impl Send for PoolCreate
impl Sync for PoolCreate
impl Unpin for PoolCreate
impl UnsafeUnpin for PoolCreate
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