pub struct TenantPolicy {
pub rate_limit_rps: u32,
pub rate_limit_burst: u32,
pub rate_limit_scope: RateLimitScope,
pub ext_allowlist: Vec<String>,
pub hot_allowlist: Vec<String>,
pub sessions: SessionPolicy,
pub hot_error_mode: HotErrorMode,
pub hot_requires_active_room: bool,
}Expand description
Tenant policy knobs. Defaults are STRICT (deny-by-default).
Fields§
§rate_limit_rps: u32Tenant-level or connection-level inbound rate limit in requests per second.
rate_limit_burst: u32Burst capacity for token bucket.
rate_limit_scope: RateLimitScopeWhere to apply rate limiting.
ext_allowlist: Vec<String>Ext lane allowlist entries, like “svc:type”
hot_allowlist: Vec<String>Hot lane allowlist entries, like “sid:opcode”
sessions: SessionPolicySession policy (1:1 / 1:N)
hot_error_mode: HotErrorModeHot lane error surface (sys.error vs silent)
hot_requires_active_room: boolIf true, hot lane requires active_room.
Implementations§
Source§impl TenantPolicy
impl TenantPolicy
pub fn validate(&self) -> Result<(), WsPrismError>
Trait Implementations§
Source§impl Clone for TenantPolicy
impl Clone for TenantPolicy
Source§fn clone(&self) -> TenantPolicy
fn clone(&self) -> TenantPolicy
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 TenantPolicy
impl Debug for TenantPolicy
Source§impl Default for TenantPolicy
impl Default for TenantPolicy
Source§fn default() -> TenantPolicy
fn default() -> TenantPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenantPolicy
impl<'de> Deserialize<'de> for TenantPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantPolicy, <__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 TenantPolicy
impl RefUnwindSafe for TenantPolicy
impl Send for TenantPolicy
impl Sync for TenantPolicy
impl Unpin for TenantPolicy
impl UnwindSafe for TenantPolicy
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