pub struct MemoryLimit {
pub bytes: usize,
pub policy: MemoryLimitPolicy,
}Expand description
Java parity: configured global publish memory budget. Stored verbatim on
crate::ClientBuilder and exposed to consumers via PulsarClient::memory_limit.
Both fields are copied into the runtime magnetar_proto::ConnectionConfig; the selected
policy therefore controls whether an exhausted budget rejects or parks a send.
Fields§
§bytes: usizeUpper bound in bytes. 0 disables the limit (matches Java default).
policy: MemoryLimitPolicyPolicy applied when the budget is exhausted.
Trait Implementations§
Source§impl Clone for MemoryLimit
impl Clone for MemoryLimit
Source§fn clone(&self) -> MemoryLimit
fn clone(&self) -> MemoryLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryLimit
Source§impl Debug for MemoryLimit
impl Debug for MemoryLimit
impl Eq for MemoryLimit
Source§impl PartialEq for MemoryLimit
impl PartialEq for MemoryLimit
impl StructuralPartialEq for MemoryLimit
Auto Trait Implementations§
impl Freeze for MemoryLimit
impl RefUnwindSafe for MemoryLimit
impl Send for MemoryLimit
impl Sync for MemoryLimit
impl Unpin for MemoryLimit
impl UnsafeUnpin for MemoryLimit
impl UnwindSafe for MemoryLimit
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