pub struct DiskLimits {
pub max_bytes: u64,
pub max_packets: usize,
pub max_additions_per_packet: usize,
}Expand description
Independent caps for disk payload and its in-memory packet index.
Fields§
§max_bytes: u64Total packet and addition bytes appended after the scratch origin.
max_packets: usizeMaximum number of staged packets.
max_additions_per_packet: usizeMaximum side-data entries on each packet, including empty entries.
Implementations§
Trait Implementations§
Source§impl Clone for DiskLimits
impl Clone for DiskLimits
Source§fn clone(&self) -> DiskLimits
fn clone(&self) -> DiskLimits
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 DiskLimits
Auto Trait Implementations§
impl Freeze for DiskLimits
impl RefUnwindSafe for DiskLimits
impl Send for DiskLimits
impl Sync for DiskLimits
impl Unpin for DiskLimits
impl UnsafeUnpin for DiskLimits
impl UnwindSafe for DiskLimits
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