pub struct BaselineLimits {
pub max_snapshots: usize,
pub max_bytes: usize,
}Expand description
Explicit per-peer storage budget. Zero bytes permits only empty snapshots; zero snapshots is invalid. See the module recipe for construction and use.
Fields§
§max_snapshots: usize§max_bytes: usizeTrait Implementations§
Source§impl Clone for BaselineLimits
impl Clone for BaselineLimits
Source§fn clone(&self) -> BaselineLimits
fn clone(&self) -> BaselineLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 BaselineLimits
impl Debug for BaselineLimits
Source§impl PartialEq for BaselineLimits
impl PartialEq for BaselineLimits
impl Copy for BaselineLimits
impl Eq for BaselineLimits
impl StructuralPartialEq for BaselineLimits
Auto Trait Implementations§
impl Freeze for BaselineLimits
impl RefUnwindSafe for BaselineLimits
impl Send for BaselineLimits
impl Sync for BaselineLimits
impl Unpin for BaselineLimits
impl UnwindSafe for BaselineLimits
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