pub struct TenantLimits {
pub max_frame_bytes: usize,
pub max_sessions_total: u64,
pub max_rooms_total: u64,
pub max_users_per_room: u64,
pub max_rooms_per_user: u64,
}Fields§
§max_frame_bytes: usizeMaximum allowed frame size for this tenant (bytes).
max_sessions_total: u64Max concurrent sessions for the entire tenant. 0 = unlimited. Lock-free best-effort: under extreme contention a tiny overshoot is possible.
max_rooms_total: u64Max active rooms for the tenant. 0 = unlimited. A room counts as “active” if it has at least one session.
max_users_per_room: u64Max users allowed in a single room. 0 = unlimited.
max_rooms_per_user: u64Max unique rooms a single user can join. 0 = unlimited.
Trait Implementations§
Source§impl Clone for TenantLimits
impl Clone for TenantLimits
Source§fn clone(&self) -> TenantLimits
fn clone(&self) -> TenantLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TenantLimits
impl Debug for TenantLimits
Source§impl Default for TenantLimits
impl Default for TenantLimits
Source§fn default() -> TenantLimits
fn default() -> TenantLimits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenantLimits
impl<'de> Deserialize<'de> for TenantLimits
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantLimits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantLimits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TenantLimits
impl RefUnwindSafe for TenantLimits
impl Send for TenantLimits
impl Sync for TenantLimits
impl Unpin for TenantLimits
impl UnwindSafe for TenantLimits
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