pub struct BackendHoldLimits { /* private fields */ }Expand description
Non-zero bounds for connection-owned backend messages.
Implementations§
Source§impl BackendHoldLimits
impl BackendHoldLimits
Sourcepub const fn new(
max_messages: usize,
max_bytes: usize,
) -> Result<Self, BackendHoldConfigError>
pub const fn new( max_messages: usize, max_bytes: usize, ) -> Result<Self, BackendHoldConfigError>
Sourcepub const fn max_messages(self) -> usize
pub const fn max_messages(self) -> usize
Maximum retained message count.
Trait Implementations§
Source§impl Clone for BackendHoldLimits
impl Clone for BackendHoldLimits
Source§fn clone(&self) -> BackendHoldLimits
fn clone(&self) -> BackendHoldLimits
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 BackendHoldLimits
Source§impl Debug for BackendHoldLimits
impl Debug for BackendHoldLimits
impl Eq for BackendHoldLimits
Source§impl PartialEq for BackendHoldLimits
impl PartialEq for BackendHoldLimits
impl StructuralPartialEq for BackendHoldLimits
Auto Trait Implementations§
impl Freeze for BackendHoldLimits
impl RefUnwindSafe for BackendHoldLimits
impl Send for BackendHoldLimits
impl Sync for BackendHoldLimits
impl Unpin for BackendHoldLimits
impl UnsafeUnpin for BackendHoldLimits
impl UnwindSafe for BackendHoldLimits
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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