pub struct BufferLimits {
pub max_events: usize,
pub max_bytes: usize,
pub max_age: Duration,
}Fields§
§max_events: usizeMax events retained across all streams.
max_bytes: usizeMax total payload bytes retained.
max_age: DurationMax age of an unacked event.
Trait Implementations§
Source§impl Clone for BufferLimits
impl Clone for BufferLimits
Source§fn clone(&self) -> BufferLimits
fn clone(&self) -> BufferLimits
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 moreSource§impl Debug for BufferLimits
impl Debug for BufferLimits
Source§impl Default for BufferLimits
impl Default for BufferLimits
Source§fn default() -> BufferLimits
fn default() -> BufferLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufferLimits
impl RefUnwindSafe for BufferLimits
impl Send for BufferLimits
impl Sync for BufferLimits
impl Unpin for BufferLimits
impl UnsafeUnpin for BufferLimits
impl UnwindSafe for BufferLimits
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