pub struct Limits {
pub max_connections: usize,
pub max_registrations: usize,
pub max_service_watches_per_connection: usize,
pub max_parallel_operations: usize,
pub max_watch_streams: usize,
pub max_instances_per_service: usize,
pub max_total_instances: usize,
pub max_snapshot_bytes: usize,
pub max_transport_tasks: usize,
}Expand description
owner 共享的资源上限;超出容量时拒绝新增工作。
Fields§
§max_connections: usize同时保留的连接数量上限。
max_registrations: usizeowner 可持有的注册目标数量上限。
max_service_watches_per_connection: usize每个连接可同时观察的服务数量上限。
max_parallel_operations: usizeowner 后端操作的并发上限。
max_watch_streams: usizeowner 同时持有的后端 watch 流数量上限。
max_instances_per_service: usize单个服务快照允许包含的实例数量上限。
max_total_instances: usizeowner 所有保留快照的实例总数上限。
max_snapshot_bytes: usizeowner 所有保留快照的估算字节总数上限。
max_transport_tasks: usize连接驱动与正文等传输任务的共享容量上限。
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
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 Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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