pub struct DispatchLimits {
pub incoming: QueueLimit,
pub message_subscriptions: usize,
pub message_deliveries: usize,
pub message_callback_workers: usize,
pub state_subscriptions: usize,
pub state_callback_workers: usize,
pub event_subscriptions: usize,
pub event_callback_workers: usize,
pub task_subscriptions: usize,
pub task_callback_workers: usize,
pub task_events: QueueLimit,
pub blocking_handshake_jobs: usize,
}Expand description
Upper limit on client-shared message distribution, subscription, and callback execution resources.
Fields§
§incoming: QueueLimitEntry and payload byte limits shared by all sessions receiving messages; unread messages from old sessions still occupy the quota.
message_subscriptions: usizeThe maximum number of message subscriptions that a client can hold at the same time.
message_deliveries: usizeThe maximum number of deliveries that can be held simultaneously when a message is distributed to subscribers; multiple recipients of the same message are counted separately.
message_callback_workers: usizeThe upper limit on the number of tasks that message callbacks can perform concurrently; worker threads are created on demand.
state_subscriptions: usizeThe maximum number of connection state subscriptions a client can hold simultaneously.
state_callback_workers: usizeNumber of worker threads to execute connection status callbacks, allowed range is 1 to 256.
event_subscriptions: usizeThe maximum number of connection event subscriptions that a client can hold simultaneously.
event_callback_workers: usizeNumber of worker threads to execute connection event callbacks, allowed range is 1 to 256.
task_subscriptions: usizeThe upper limit of the number of task final event subscriptions that the client can hold at the same time.
task_callback_workers: usizeThe number of worker threads that execute task final event callbacks. The allowed range is 1 to 256.
task_events: QueueLimitShared limits for final-state notifications from all session tasks; quotas are reserved when a task is admitted and count both deliveries and payload bytes.
blocking_handshake_jobs: usizeThe maximum number of tasks that can be executed simultaneously on a blocking handshake context provider.