pub struct StreamLimits {
pub max_buffered_bytes: usize,
pub max_queued_messages: usize,
}Expand description
Independent receive limits applied to every stream.
Fields§
§max_buffered_bytes: usizeMaximum retained bytes, including metadata and message descriptors.
max_queued_messages: usizeMaximum complete messages awaiting consumption, including empty messages.
Trait Implementations§
Source§impl Clone for StreamLimits
impl Clone for StreamLimits
impl Copy for StreamLimits
Source§impl Debug for StreamLimits
impl Debug for StreamLimits
Source§impl Default for StreamLimits
impl Default for StreamLimits
impl Eq for StreamLimits
Source§impl PartialEq for StreamLimits
impl PartialEq for StreamLimits
impl StructuralPartialEq for StreamLimits
Auto Trait Implementations§
impl Freeze for StreamLimits
impl RefUnwindSafe for StreamLimits
impl Send for StreamLimits
impl Sync for StreamLimits
impl Unpin for StreamLimits
impl UnsafeUnpin for StreamLimits
impl UnwindSafe for StreamLimits
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