pub struct Limits {
pub max_connections: Option<u32>,
pub max_subscriptions: Option<u32>,
pub max_snapshot_rows: Option<u32>,
pub max_messages_per_minute: Option<u32>,
pub max_bytes_per_minute: Option<u64>,
}Expand description
Resource limits for a session
Fields§
§max_connections: Option<u32>Maximum concurrent connections for this subject
max_subscriptions: Option<u32>Maximum subscriptions per connection
max_snapshot_rows: Option<u32>Maximum snapshot rows per request
max_messages_per_minute: Option<u32>Maximum messages per minute
max_bytes_per_minute: Option<u64>Maximum egress bytes per minute
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 Freeze 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