pub struct Serving {
pub max_concurrent: u32,
pub on_capacity_exhausted: CapacityPolicy,
}Expand description
Per-deployment serving capacity (doc §11.2).
Fields§
§max_concurrent: u32For remote: worker pool size; for local: maximum in-flight requests on the engine. Doc §3.5 (capacity bottleneck).
on_capacity_exhausted: CapacityPolicyTrait Implementations§
Source§impl<'de> Deserialize<'de> for Serving
impl<'de> Deserialize<'de> for Serving
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Serving
impl RefUnwindSafe for Serving
impl Send for Serving
impl Sync for Serving
impl Unpin for Serving
impl UnsafeUnpin for Serving
impl UnwindSafe for Serving
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